getIdTokenResult method

Future<IdTokenResult> getIdTokenResult([
  1. bool forceRefresh = false
])

Returns a IdTokenResult containing the users JSON Web Token (JWT) and other metadata.

If forceRefresh is true, the token returned will be refresh regardless of token expiration.

Implementation

Future<IdTokenResult> getIdTokenResult([bool forceRefresh = false]) async {
  _assertSignedOut(_auth);

  await _refreshIdToken(forceRefresh);

  return IdTokenResult(_decodedIdToken);
}