Skip to main content
API Reference / modelence / client / linkOAuthProvider
linkOAuthProvider(options): Promise<void>
Defined in: packages/modelence/src/auth/client/index.ts:184 Link an OAuth provider to the currently signed-in user’s account. Redirects the browser to the OAuth provider’s authorization page. The provider will redirect back and the account will be linked.

Example

linkOAuthProvider({ provider: 'google' });

Parameters

ParameterTypeDescription
options{ provider: "google" | "github"; }-
options.provider"google" | "github"The OAuth provider to link (‘google’ or ‘github’).

Returns

Promise<void>