OAuth

constructor(provider: OAuthProvider, redirectUrl: String = RedirectConfiguration.DEFAULT_REDIRECT_URL, emailAddress: String? = null, legalAccepted: Boolean? = null, identifier: String? = null)

Parameters

provider

The OAuth provider to use for authentication. You can use a predefined OAuthProvider or a custom one.

redirectUrl

The URL to redirect to after the user completes the authentication flow with the provider. Defaults to the first redirect URL configured in your Clerk Dashboard.

emailAddress

The user's email address, which can be used to pre-fill the authentication form on the provider's site.

legalAccepted

Indicates whether the user has accepted any legal terms, such as a privacy policy or terms of service.

identifier

The user's identifier for authentication, which can be an email address or phone number.