login method
Validates a GitHub authorization code and either logs in the associated user or creates a new user account if the GitHub account ID is not yet known.
This method exchanges the authorization code for an access token using
PKCE, then authenticates the user.
If a new user is created an associated UserProfile is also created.
Implementation
Future<AuthSuccess> login(
final Session session, {
required final String code,
required final String codeVerifier,
required final String redirectUri,
}) async {
return githubIdp.login(
session,
code: code,
codeVerifier: codeVerifier,
redirectUri: redirectUri,
);
}