Skip to main content

signInWithOAuth

Sign in with a pre-linked OAuth account by exchanging an authorization code for tokens. This is sign-in-only and requires an existing oauthAccountsTable record; onboarding/linking is handled via linkOAuthAccount for authenticated users.

signInWithOAuth(
input: OAuthLoginInput!
): AuthenticationPayload

Arguments

signInWithOAuth.input ● OAuthLoginInput! non-null input

Input containing OAuth provider details and authorization code.

Type

AuthenticationPayload object