Use the getIdToken method to retrieve the ID token of the currently authenticated user.
getIdToken
final idToken = await FirebaseApp.firebaseAuth?.getIdToken();
None
String: Returns the idToken of the current user.
idToken
This method retrieves the ID token associated with the current user, which can be used for authentication and authorization with Firebase services.
Last updated 1 year ago