Get ID Token

Use the getIdToken method to retrieve the ID token of the currently authenticated user.

Method

final idToken = await FirebaseApp.firebaseAuth?.getIdToken();

Parameters

  • None

Return

  • String: Returns the idToken of the current user.

This method retrieves the ID token associated with the current user, which can be used for authentication and authorization with Firebase services.

Last updated