Use the getIdTokenResult method to retrieve the ID token result of the current user, including additional metadata.
Method
final idTokenResult =await FirebaseApp.firebaseAuth?.getIdTokenResult();
Parameters
None
Return
IdTokenResult: Returns an IdTokenResult object that includes the ID token and additional metadata.
This method retrieves the full ID token result for the current user, providing both the token and additional information such as expiration time and issued-at time.