GoogleAuthSuccess typedef

GoogleAuthSuccess = ({UuidValue authUserId, GoogleAccountDetails details, UuidValue googleAccountId, bool newAccount, Set<Scope> scopes})

Result of a successful authentication using Google as identity provider.

Implementation

typedef GoogleAuthSuccess = ({
  /// The ID of the `GoogleAccount` database entity.
  UuidValue googleAccountId,

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

  /// Details of the Google account.
  GoogleAccountDetails details,

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

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