Back to gallery
OAuth / OIDC
Generate a social sign-in URL for Google, GitHub or OIDC.
Dev-limited
auth.getOAuthUrl / handleOAuthCallback Choose a provider and generate its authorization URL.
oauth
No output yet — run the demo above.
getOAuthUrl is a real call — it returns the authorization
URL and a CSRF state. Completing the sign-in requires a
configured provider, so this demo stops at the redirect boundary.