Skip to main content
sso.start() starts an SSO flow by redirecting the browser to Stytch’s SSO Start endpoint. The method will also generate a PKCE code_verifier and store it in localstorage on the device.

Parameters

string
required
Globally unique UUID that identifies a specific SSO connection_id for a Member.
string
The URL Stytch redirects to after the SSO flow is completed for a Member that already exists. This URL should be a route in your application which will run sso.authenticate and finish the login.The URL must be configured as a Login URL in the Stytch Dashboard. If the field is not specified, the default Login URL will be used.
string
The URL Stytch redirects to after the SSO flow is completed for a Member that does not yet exist. This URL should be a route in your application which will run sso.authenticate (see below) and finish the signup.The URL must be configured as a Signup URL in the Stytch Dashboard. If the field is not specified, the default Signup URL will be used.