Auth | JavaScript SDK | Node.js (client) API reference | Firebase
Index
Type aliases
Persistence
Persistence: string
Properties
app
config
currentUser
current
emulatorConfig
languageCode
language
name
name: string
settings
tenantId
tenant
Variables
Persistence
Methods
applyActionCode
- apply
Action Code ( code : string ) : Promise < void > -
Parameters
-
code: string
Returns Promise<void>
-
checkActionCode
- check
Action Code ( code : string ) : Promise < ActionCodeInfo > -
Parameters
-
code: string
Returns Promise<ActionCodeInfo>
-
confirmPasswordReset
- confirm
Password Reset ( code : string , newPassword : string ) : Promise < void > -
Parameters
-
code: string
-
newPassword: string
Returns Promise<void>
-
createUserWithEmailAndPassword
- create
User With Email And Password ( email : string , password : string ) : Promise < UserCredential > -
Parameters
-
email: string
-
password: string
Returns Promise<UserCredential>
-
fetchSignInMethodsForEmail
- fetch
Sign InMethods For Email ( email : string ) : Promise < Array < string > > -
Parameters
-
email: string
Returns Promise<Array<string>>
-
isSignInWithEmailLink
- is
Sign InWith Email Link ( emailLink : string ) : boolean -
Parameters
-
emailLink: string
Returns boolean
-
onAuthStateChanged
- on
Auth State Changed ( nextOrObserver : Observer < any > | ( ( a : User | null ) => any ) , error ? : ( a : Error ) => any , completed ? : firebase.Unsubscribe ) : firebase.Unsubscribe -
Parameters
-
nextOrObserver: Observer<any> | ((a: User | null) => any)
-
Optional error: (a: Error) => any
-
Optional completed: firebase.Unsubscribe
Returns firebase.Unsubscribe
-
onIdTokenChanged
- on
IdToken Changed ( nextOrObserver : Observer < any > | ( ( a : User | null ) => any ) , error ? : ( a : Error ) => any , completed ? : firebase.Unsubscribe ) : firebase.Unsubscribe -
Parameters
-
nextOrObserver: Observer<any> | ((a: User | null) => any)
-
Optional error: (a: Error) => any
-
Optional completed: firebase.Unsubscribe
Returns firebase.Unsubscribe
-
sendPasswordResetEmail
- send
Password Reset Email ( email : string , actionCodeSettings ? : ActionCodeSettings | null ) : Promise < void > -
Parameters
-
email: string
-
Optional actionCodeSettings: ActionCodeSettings | null
Returns Promise<void>
-
sendSignInLinkToEmail
- send
Sign InLink ToEmail ( email : string , actionCodeSettings : ActionCodeSettings ) : Promise < void > -
Parameters
-
email: string
-
actionCodeSettings: ActionCodeSettings
Returns Promise<void>
-
setPersistence
- set
Persistence ( persistence : Persistence ) : Promise < void > -
Parameters
-
persistence: Persistence
Returns Promise<void>
-
signInAndRetrieveDataWithCredential
- sign
InAnd Retrieve Data With Credential ( credential : AuthCredential ) : Promise < UserCredential > -
Parameters
-
credential: AuthCredential
Returns Promise<UserCredential>
-
signInAnonymously
- sign
InAnonymously ( ) : Promise < UserCredential > -
Returns Promise<UserCredential>
signInWithCredential
- sign
InWith Credential ( credential : AuthCredential ) : Promise < UserCredential > -
Parameters
-
credential: AuthCredential
Returns Promise<UserCredential>
-
signInWithCustomToken
- sign
InWith Custom Token ( token : string ) : Promise < UserCredential > -
Parameters
-
token: string
Returns Promise<UserCredential>
-
signInWithEmailAndPassword
- sign
InWith Email And Password ( email : string , password : string ) : Promise < UserCredential > -
Parameters
-
email: string
-
password: string
Returns Promise<UserCredential>
-
signInWithEmailLink
- sign
InWith Email Link ( email : string , emailLink ? : string ) : Promise < UserCredential > -
Parameters
-
email: string
-
Optional emailLink: string
Returns Promise<UserCredential>
-
signInWithPhoneNumber
- sign
InWith Phone Number ( phoneNumber : string , applicationVerifier : ApplicationVerifier ) : Promise < ConfirmationResult > -
Parameters
-
phoneNumber: string
-
applicationVerifier: ApplicationVerifier
Returns Promise<ConfirmationResult>
-
signOut
- sign
Out ( ) : Promise < void > -
Returns Promise<void>
updateCurrentUser
useDeviceLanguage
- use
Device Language ( ) : void -
Returns void
useEmulator
- use
Emulator ( url : string ) : void -
Parameters
-
url: string
Returns void
-
verifyPasswordResetCode
- verify
Password Reset Code ( code : string ) : Promise < string > -
Parameters
-
code: string
Returns Promise<string>
-