linkGitHubAuthentication method
Future<GitHubAccount>
linkGitHubAuthentication(
- Session session, {
- required UuidValue authUserId,
- required GitHubAccountDetails accountDetails,
- Transaction? transaction,
Adds a GitHub authentication to the given authUserId.
Returns the newly created GitHub account.
The transaction parameter can be used to perform the database operations
within an existing transaction.
Implementation
Future<GitHubAccount> linkGitHubAuthentication(
final Session session, {
required final UuidValue authUserId,
required final GitHubAccountDetails accountDetails,
final Transaction? transaction,
}) async {
return await GitHubAccount.db.insertRow(
session,
GitHubAccount(
userIdentifier: accountDetails.userIdentifier,
email: accountDetails.email,
authUserId: authUserId,
),
transaction: transaction,
);
}