Documentation Index
Fetch the complete documentation index at: https://docs.cloud.coinbase.com/llms.txt
Use this file to discover all available pages before exploring further.
function verifyOAuth(options: VerifyOAuthOptions): Promise<VerifyOAuthResult>;
Verifies the OAuth code for the sign in flow with a OAuth provider.
Parameters
| Parameter | Type | Description |
options | VerifyOAuthOptions | The options for the verification. |
Returns
Promise<VerifyOAuthResult>
The result of the verification.
Examples
// Google
const result = await verifyOAuth({
flowId: "flow-id-from-signInWithGoogle",
code: "123456", // The OAuth code received from the OAuth provider
providerType: "google",
});
// Apple
const result = await verifyOAuth({
flowId: "flow-id-from-signInWithApple",
code: "123456", // The OAuth code received from the OAuth provider
providerType: "apple",
});
// X
const result = await verifyOAuth({
flowId: "flow-id-from-signInWithX",
code: "123456", // The OAuth code received from the OAuth provider
providerType: "x",
});