Skip to main content
API Reference / modelence / client / linkOAuthProvider
linkOAuthProvider(options): Promise<void>
Defined in: packages/modelence/src/auth/client/index.ts:425 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. Without redirectUri this navigates the current context and authenticates with an httpOnly cookie, so it only works where the navigation stays in the same cookie jar — a browser, or a webview that navigates in place. Clients whose openUrl opens an external browser (Electron, Capacitor) must pass a redirectUri: that flow carries a single-use nonce in the URL and does not depend on cookies.

Example

Parameters

Returns

Promise<void>