Parameters
| Parameter | Type | Description |
|---|---|---|
options | VerifyOAuthOptions | The options for the verification. |
Returns
Promise<VerifyOAuthResult>
The result of the verification.
function verifyOAuth(options: VerifyOAuthOptions): Promise<VerifyOAuthResult>;
| Parameter | Type | Description |
|---|---|---|
options | VerifyOAuthOptions | The options for the verification. |
Promise<VerifyOAuthResult>
The result of the verification.
// 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",
});
Was this page helpful?