getIdTokenResult method

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

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

Returns the current token if it has not expired. Otherwise, this will refresh the token and return a new one.

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

Implementation

@override
Future<IdTokenResult> getIdTokenResult([bool forceRefresh = false]) {
  return Future.value(getIdTokenResultSync());
}