FirebaseAuthSuccess typedef

FirebaseAuthSuccess = ({UuidValue authUserId, FirebaseAccountDetails details, UuidValue firebaseAccountId, bool newAccount, Set<Scope> scopes})

Result of a successful authentication using Firebase as identity provider.

Implementation

typedef FirebaseAuthSuccess = ({
  /// The ID of the `FirebaseAccount` database entity.
  UuidValue firebaseAccountId,

  /// The ID of the associated `AuthUser`.
  UuidValue authUserId,

  /// Details of the Firebase account.
  FirebaseAccountDetails details,

  /// Whether the associated `AuthUser` was newly created during the
  /// authentication.
  bool newAccount,

  /// The scopes granted to the associated `AuthUser`.
  Set<Scope> scopes,
});