Check Action Code

Use the checkActionCode method to verify the validity of an action code sent to the user's email for actions such as password reset, email verification, or other user account-related actions.

Method

final ActionCodeInfo actionCodeInfo = await FirebaseApp.instance.checkActionCode(code);

Parameters

  • code (String): The action code sent to the user's email.

Return

  • ActionCodeInfo: Returns an ActionCodeInfo object containing details about the action code, such as its type (e.g., password reset, email verification), and relevant metadata.

This method is useful for validating the action code before proceeding with account changes or other user actions.

Last updated