Auth

let auth = store.auth;

Auth is activated on first access from store.

user → User or null

Currently signed in user.

See Store options.auth on how to setup custom user subclass.

promise → Promise<User | null>

Resolves on first onAuthStateChanged invocation.

async signOut() → undefined

Signs out current user if there is current user.

methods → AuthMethods

Auth methods .

let auth = store.auth;
await auth.methods.anonymous.signIn();