Index
Type aliases
Operation
Properties
data
The data associated with the action code.
For the PASSWORD_RESET
, VERIFY_EMAIL
, and RECOVER_EMAIL
actions, this object
contains an email
field with the address the email was sent to.
For the RECOVER_EMAIL action, which allows a user to undo an email address
change, this object also contains a previousEmail
field with the user account's
current email address. After the action completes, the user's email address will
revert to the value in the email
field from the value in previousEmail
field.
For the VERIFY_AND_CHANGE_EMAIL action, which allows a user to verify the email
before updating it, this object contains a previousEmail
field with the user
account's email address before updating. After the action completes, the user's
email address will be updated to the value in the email
field from the value
in previousEmail
field.
For the REVERT_SECOND_FACTOR_ADDITION action, which allows a user to unenroll
a newly added second factor, this object contains a multiFactorInfo
field with
the information about the second factor. For phone second factor, the
multiFactorInfo
is a firebase.auth.PhoneMultiFactorInfo object,
which contains the phone number.
Type declaration
-
Optional email?: string | null
-
Optional from
Email?: string | null -
Optional multi
Factor Info?: MultiFactorInfo | null -
Optional previous
Email?: string | null
operation
The type of operation that generated the action code. This could be:
- `EMAIL_SIGNIN`: email sign in code generated via firebase.auth.Auth.sendSignInLinkToEmail.
- `PASSWORD_RESET`: password reset code generated via firebase.auth.Auth.sendPasswordResetEmail.
- `RECOVER_EMAIL`: email change revocation code generated via firebase.User.updateEmail.
- `REVERT_SECOND_FACTOR_ADDITION`: revert second factor addition code generated via firebase.User.MultiFactorUser.enroll.
- `VERIFY_AND_CHANGE_EMAIL`: verify and change email code generated via firebase.User.verifyBeforeUpdateEmail.
- `VERIFY_EMAIL`: email verification code generated via firebase.User.sendEmailVerification.
Variables
Operation
An enumeration of the possible email action types.
Type declaration
-
EMAIL_
SIGNIN: Operation The email link sign-in action.
-
PASSWORD_
RESET: Operation The password reset action.
-
RECOVER_
EMAIL: Operation The email revocation action.
-
REVERT_
SECOND_ FACTOR_ ADDITION: Operation The revert second factor addition email action.
-
VERIFY_
AND_ CHANGE_ EMAIL: Operation The verify and update email action.
-
VERIFY_
EMAIL: Operation The email verification action.
A response from firebase.auth.Auth.checkActionCode.