firebase-cljs.auth
FirebaseAuth
protocol
members
redirect-result
(redirect-result _)
Returns a UserCredential from the Firebase Auth service using the redirect-based sign-in flow. If sign-in succeeded, returns the signed in user. If sign-in was unsuccessful, fails with an error. If no redirect operation was called, returns a UserCredential with a null User.
check-actioncode
(check-actioncode _ code)
Checks a verification code with the Firebase Auth service, sent to the user by email or other out-of-band mechanism.
auth-changed
(auth-changed _ observer)
(auth-changed _ observer failure)
(auth-changed _ observer failure complete)
Adds an observer to the Firebase Auth service for auth state changes.
login-popup
(login-popup _ provider)
Authenticates a Firebase client with the Firebase Auth service using a popup-based OAuth authentication flow.
create-user
(create-user _ email pass)
Creates a new user account with the Firebase Auth service, associated with the specified email address and password.
providers-by-email
(providers-by-email _ email)
Gets the list of provider IDs from the Firebase Auth service, that can be used to sign in for the given email address. Useful for an ‘identifier-first’ sign-in flow.
login-token
(login-token _ token)
Asynchronously signs into the Firebase Auth service using a custom token. Custom tokens are used to integrate Firebase Auth with existing auth systems, and must be generated by the auth backend.
login-redirect
(login-redirect _ provider)
Authenticates a Firebase client with the Firebase Auth service using a full-page redirect flow.
login-userpass
(login-userpass _ email pass)
Asynchronously signs into the Firebase Auth service using an email and password.
apply-actioncode
(apply-actioncode _ code)
Applies a verification code to the Firebase Auth service, sent to the user by email or other out-of-band mechanism.
login-cred
(login-cred _ cred)
Asynchronously signs into the Firebase Auth service with the given credentials.
confirm-pass-reset
(confirm-pass-reset _ code pass)
Completes the password reset process with the Firebase Auth service, given a confirmation code and new password.
send-pass-reset
(send-pass-reset _ email)
Sends a password reset email using the Firebase Auth Service to the given email address.
get-app
(get-app _)
Returns the Firebase Application associated with the Firebase Auth service instance.
login-anon
(login-anon _)
Asynchronously signs in as an anonymous user, using the Firebase Auth service. If there is already an anonymous user signed in, that user will be returned; otherwise, a new anonymous user identity will be created and returned.
verify-pass-reset
(verify-pass-reset _ code)
Checks a password reset code with the Firebase Auth service, sent to the user by email or other out-of-band mechanism.