A utility class to parse email action URLs.

Index

Constructors

Private constructor

Properties

apiKey

apiKey: string

The API key of the email action link.

code

code: string

The action code of the email action link.

continueUrl

continueUrl: string | null

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

languageCode

languageCode: string | null

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

operation

operation: Operation

The action performed by the email action link. It returns from one of the types from firebase.auth.ActionCodeInfo.

tenantId

tenantId: string | null

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

Methods

Static parseLink

  • parseLink(link: string): ActionCodeURL | null
  • Parses the email action link string and returns an ActionCodeURL object if the link is valid, otherwise returns null.

    Parameters

    • link: string

      The email action link string.

    Returns ActionCodeURL | null

    The ActionCodeURL object, or null if the link is invalid.