firebase_auth_mocks icon indicating copy to clipboard operation
firebase_auth_mocks copied to clipboard

Feature request: Add support for mocking getIdTokenResult.

Open simplecohesion opened this issue 3 years ago • 0 comments

Most useful for custom claims, which can be used for role-based access control.

  /// Returns a [IdTokenResult] containing the users JSON Web Token (JWT) and
  /// other metadata.
  ///
  /// If [forceRefresh] is `true`, the token returned will be refreshed regardless
  /// of token expiration.
  Future<IdTokenResult> getIdTokenResult([bool forceRefresh = false]) {
    return _delegate.getIdTokenResult(forceRefresh);
  }

simplecohesion avatar Jun 16 '22 23:06 simplecohesion