signInWithIdToken
suspend fun Auth.signInWithIdToken(block: SignInWithIdTokenBuilder.() -> Unit): ClerkResult<OAuthResult, ClerkErrorResponse>
Signs in with an ID token from an identity provider.
Return
A ClerkResult containing the OAuthResult on success, or a ClerkErrorResponse on failure.
Example usage:
val result = clerk.auth.signInWithIdToken {
token = idToken
provider = IdTokenProvider.GOOGLE
}Content copied to clipboard
Parameters
block
Builder block to configure the token and provider.