docs-devsite/auth.actioncodeurl.md
Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference
{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}
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 the ActionCodeURL class.
<b>Signature:</b>
export declare class ActionCodeURL
| Property | Modifiers | Type | Description |
|---|---|---|---|
| apiKey | string | The API key of the email action link. | |
| code | string | The action code of the email action link. | |
| continueUrl | string | null | The continue URL of the email action link. Null if not provided. | |
| languageCode | string | null | The language code of the email action link. Null if not provided. | |
| operation | string | The action performed by the email action link. It returns from one of the types from ActionCodeInfo | |
| tenantId | string | null | The tenant ID of the email action link. Null if the email action is from the parent project. |
| Method | Modifiers | Description |
|---|---|---|
| parseLink(link) | <code>static</code> | Parses the email action link string and returns an ActionCodeURL if the link is valid, otherwise returns null. |
The API key of the email action link.
<b>Signature:</b>
readonly apiKey: string;
The action code of the email action link.
<b>Signature:</b>
readonly code: string;
The continue URL of the email action link. Null if not provided.
<b>Signature:</b>
readonly continueUrl: string | null;
The language code of the email action link. Null if not provided.
<b>Signature:</b>
readonly languageCode: string | null;
The action performed by the email action link. It returns from one of the types from ActionCodeInfo
<b>Signature:</b>
readonly operation: string;
The tenant ID of the email action link. Null if the email action is from the parent project.
<b>Signature:</b>
readonly tenantId: string | null;
Parses the email action link string and returns an ActionCodeURL if the link is valid, otherwise returns null.
<b>Signature:</b>
static parseLink(link: string): ActionCodeURL | null;
| Parameter | Type | Description |
|---|---|---|
| link | string | The email action link string. |
<b>Returns:</b>
ActionCodeURL | null
The ActionCodeURL object, or null if the link is invalid.