ActionCodeURL class

A utility class to parse email action URLs such as password reset, email verification, email link sign in, etc.

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend theActionCodeURL class.

Signature:

exportdeclareclassActionCodeURL

Properties

PropertyModifiersTypeDescription
apiKeystringThe API key of the email action link.
codestringThe action code of the email action link.
continueUrlstring | nullThe continue URL of the email action link. Null if not provided.
languageCodestring | nullThe language code of the email action link. Null if not provided.
operationstringThe action performed by the email action link. It returns from one of the types fromActionCodeInfo
tenantIdstring | nullThe tenant ID of the email action link. Null if the email action is from the parent project.

Methods

MethodModifiersDescription
parseLink(link)staticParses the email action link string and returns anActionCodeURL if the link is valid, otherwise returns null.

ActionCodeURL.apiKey

The API key of the email action link.

Signature:

readonlyapiKey:string;

ActionCodeURL.code

The action code of the email action link.

Signature:

readonlycode:string;

ActionCodeURL.continueUrl

The continue URL of the email action link. Null if not provided.

Signature:

readonlycontinueUrl:string|null;

ActionCodeURL.languageCode

The language code of the email action link. Null if not provided.

Signature:

readonlylanguageCode:string|null;

ActionCodeURL.operation

The action performed by the email action link. It returns from one of the types fromActionCodeInfo

Signature:

readonlyoperation:string;

ActionCodeURL.tenantId

The tenant ID of the email action link. Null if the email action is from the parent project.

Signature:

readonlytenantId:string|null;

ActionCodeURL.parseLink()

Parses the email action link string and returns anActionCodeURL if the link is valid, otherwise returns null.

Signature:

staticparseLink(link:string):ActionCodeURL|null;

Parameters

ParameterTypeDescription
linkstringThe email action link string.

Returns:

ActionCodeURL | null

TheActionCodeURL object, or null if the link is invalid.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-01-19 UTC.