Start attaching Google OAuth to the currently signed-in member.
GET
/account/security/oauth/google/start
const url = 'https://api.siteqwality.com/account/security/oauth/google/start';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.siteqwality.com/account/security/oauth/google/start \ --header 'Authorization: Bearer <token>'Returns an org-scoped Stytch start URL (not discovery). The SPA navigates
the browser there; after Google consent Stytch redirects to the dashboard
callback with a token that complete_google_oauth_connect consumes.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”OAuth start URL
Media type application/json
Start URL for attaching an OAuth provider while already signed in.
object
url
required
Stytch public OAuth start URL. The browser navigates here directly.
string
Example generated
{ "url": "example"}Missing or invalid authentication
Endpoint requires a user session
Internal server error