Stay organized with collections
Save and categorize content based on your preferences.
Type aliases
Operation
Operation: string
Properties
data
data
: { email
?: string | null; fromEmail
?: string | null; multiFactorInfo
?: MultiFactorInfo | null; previousEmail
?: string | null }
Type declaration
-
Optional email?: string | null
-
Optional fromEmail?: string | null
-
Optional multiFactorInfo?: MultiFactorInfo | null
-
Optional previousEmail?: string | null
operation
operation: string
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-27 UTC.
[null,null,["Last updated 2022-07-27 UTC."],[],[],null,["- [firebase](/docs/reference/js/v8/firebase).\n- [auth](/docs/reference/js/v8/firebase.auth).\n- ActionCodeInfo \nA response from [firebase.auth.Auth.checkActionCode](/docs/reference/js/v8/firebase.auth.Auth#checkactioncode).\n\nIndex\n\nType aliases\n\n- [Operation](/docs/reference/js/v8/firebase.auth.ActionCodeInfo#operation)\n\nProperties\n\n- [data](/docs/reference/js/v8/firebase.auth.ActionCodeInfo#data)\n- [operation](/docs/reference/js/v8/firebase.auth.ActionCodeInfo#operation-1)\n\nVariables\n\n- [Operation](/docs/reference/js/v8/firebase.auth.ActionCodeInfo#operation-2)\n\nType aliases\n\nOperation \nOperation: string\n\nProperties\n\ndata \ndata: { email?: string \\| null; fromEmail?: string \\| null; multiFactorInfo?: [MultiFactorInfo](/docs/reference/js/v8/firebase.auth.MultiFactorInfo) \\| null; previousEmail?: string \\| null } \nThe data associated with the action code.\n\nFor the `PASSWORD_RESET`, `VERIFY_EMAIL`, and `RECOVER_EMAIL` actions, this object\ncontains an `email` field with the address the email was sent to.\n\nFor the RECOVER_EMAIL action, which allows a user to undo an email address\nchange, this object also contains a `previousEmail` field with the user account's\ncurrent email address. After the action completes, the user's email address will\nrevert to the value in the `email` field from the value in `previousEmail` field.\n\nFor the VERIFY_AND_CHANGE_EMAIL action, which allows a user to verify the email\nbefore updating it, this object contains a `previousEmail` field with the user\naccount's email address before updating. After the action completes, the user's\nemail address will be updated to the value in the `email` field from the value\nin `previousEmail` field.\n\nFor the REVERT_SECOND_FACTOR_ADDITION action, which allows a user to unenroll\na newly added second factor, this object contains a `multiFactorInfo` field with\nthe information about the second factor. For phone second factor, the\n`multiFactorInfo` is a [firebase.auth.PhoneMultiFactorInfo](/docs/reference/js/v8/firebase.auth.PhoneMultiFactorInfo) object,\nwhich contains the phone number. \n\nType declaration\n\n-\n\n Optional email?: string \\| null\n-\n\n Optional fromEmail?: string \\| null \n\n deprecated\n\n : This field is deprecated in favor of previousEmail.\n\n-\n\n Optional multiFactorInfo?: [MultiFactorInfo](/docs/reference/js/v8/firebase.auth.MultiFactorInfo) \\| null\n-\n\n Optional previousEmail?: string \\| null\n\noperation \noperation: string \nThe type of operation that generated the action code. This could be:\n\n- \\`EMAIL_SIGNIN\\`: email sign in code generated via [firebase.auth.Auth.sendSignInLinkToEmail](/docs/reference/js/v8/firebase.auth.Auth#sendsigninlinktoemail).\n- \\`PASSWORD_RESET\\`: password reset code generated via [firebase.auth.Auth.sendPasswordResetEmail](/docs/reference/js/v8/firebase.auth.Auth#sendpasswordresetemail).\n- \\`RECOVER_EMAIL\\`: email change revocation code generated via [firebase.User.updateEmail](/docs/reference/js/v8/firebase.User#updateemail).\n- \\`REVERT_SECOND_FACTOR_ADDITION\\`: revert second factor addition code generated via [firebase.User.MultiFactorUser.enroll](/docs/reference/js/v8/firebase.user.MultiFactorUser#enroll).\n- \\`VERIFY_AND_CHANGE_EMAIL\\`: verify and change email code generated via [firebase.User.verifyBeforeUpdateEmail](/docs/reference/js/v8/firebase.User#verifybeforeupdateemail).\n- \\`VERIFY_EMAIL\\`: email verification code generated via [firebase.User.sendEmailVerification](/docs/reference/js/v8/firebase.User#sendemailverification).\n\nVariables\n\nOperation \nOperation: { EMAIL_SIGNIN: [Operation](/docs/reference/js/v8/firebase.auth.ActionCodeInfo#operation); PASSWORD_RESET: [Operation](/docs/reference/js/v8/firebase.auth.ActionCodeInfo#operation); RECOVER_EMAIL: [Operation](/docs/reference/js/v8/firebase.auth.ActionCodeInfo#operation); REVERT_SECOND_FACTOR_ADDITION: [Operation](/docs/reference/js/v8/firebase.auth.ActionCodeInfo#operation); VERIFY_AND_CHANGE_EMAIL: [Operation](/docs/reference/js/v8/firebase.auth.ActionCodeInfo#operation); VERIFY_EMAIL: [Operation](/docs/reference/js/v8/firebase.auth.ActionCodeInfo#operation) } \nAn enumeration of the possible email action types. \n\nType declaration\n\n-\n\n EMAIL_SIGNIN: [Operation](/docs/reference/js/v8/firebase.auth.ActionCodeInfo#operation) \n The email link sign-in action.\n-\n\n PASSWORD_RESET: [Operation](/docs/reference/js/v8/firebase.auth.ActionCodeInfo#operation) \n The password reset action.\n-\n\n RECOVER_EMAIL: [Operation](/docs/reference/js/v8/firebase.auth.ActionCodeInfo#operation) \n The email revocation action.\n-\n\n REVERT_SECOND_FACTOR_ADDITION: [Operation](/docs/reference/js/v8/firebase.auth.ActionCodeInfo#operation) \n The revert second factor addition email action.\n-\n\n VERIFY_AND_CHANGE_EMAIL: [Operation](/docs/reference/js/v8/firebase.auth.ActionCodeInfo#operation) \n The verify and update email action.\n-\n\n VERIFY_EMAIL: [Operation](/docs/reference/js/v8/firebase.auth.ActionCodeInfo#operation) \nThe email verification action."]]
A response from firebase.auth.Auth.checkActionCode.