SSOCallback
Handles OAuth and SSO callbacks from external identity providers like Google, GitHub, and enterprise SAML providers. Create a route for the OAuth callback that matches your redirect URI configured in the Wacht dashboard:Behavior
- Reads OAuth callback parameters from the URL (
code,state,error) - Validates the OAuth state parameter
- Calls the appropriate backend endpoint to complete the flow
- Handles errors (access denied, invalid state, etc.) with an error message banner
- Redirects to the appropriate page after completion
- sign_in - Standard sign-in flow
- connect_social - Connecting a social account to an existing user
Query Parameters
OAuth authorization code.
OAuth state parameter (base64 encoded).
OAuth error code.
OAuth error description.
Related
- useSSOCallback - SSO callback hook
- SignInForm - Sign-in form with social login
