GitHubAuthSuccess typedef

GitHubAuthSuccess = ({UuidValue authUserId, GitHubAccountDetails details, UuidValue githubAccountId, bool newAccount, Set<Scope> scopes})

Result of a successful authentication using GitHub as identity provider.

Implementation

typedef GitHubAuthSuccess = ({
  /// The ID of the `GitHubAccount` database entity.
  UuidValue githubAccountId,

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

  /// Details of the GitHub account.
  GitHubAccountDetails details,

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

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