Link OAuth Provider
OAuth Endpoints
Link OAuth Provider
Link a new OAuth provider to the current authenticated user
POST
Link OAuth Provider
Initiates an OAuth 2.0 flow to link an additional provider to the currently authenticated user’s account. Requires a valid access token. The flow and callback behavior are identical to the Authorize OAuth endpoint. The authenticated user’s ID is taken from the access token — it cannot be specified in the request body.Documentation Index
Fetch the complete documentation index at: https://docs.replyke.com/llms.txt
Use this file to discover all available pages before exploring further.
Headers
Bearer {accessToken} — a valid access token for the user linking the provider.Body Parameters
The OAuth provider to link. Must be one of:
"google", "github", "apple",
"facebook".The URL to redirect the user to after authorization. Must be a valid URL and
must be in the provider’s configured allowed redirect URIs.
Response
The provider’s authorization URL. Redirect the user’s browser to this URL.
Callback
After the user authorizes with the provider, they are redirected toredirectAfterAuth with one of:
On success — Tokens in the URL fragment (new tokens are issued for the linked account):
Error Responses
Provider Not Configured — 400
Provider Not Configured — 400
Invalid Redirect URI — 400
Invalid Redirect URI — 400

