Skip to main content
These presets are built on genericOIDC. Register each one in oauth({ providers }) and use the callback URL https://your-app.com/api/theauth/auth/oauth/callback/<id>.
lib/theauth.ts
Discovery presets fetch /.well-known/openid-configuration on first use and cache it. The last four map non-OIDC userinfo responses.

Writing your own

Two options on genericOIDC make most non-standard providers a few lines:
mapProfile returns null for an unusable response, which surfaces as an error instead of a half-built user. Providers that omit the email address (Strava, Pinterest) are not supported by the generic factory, because TheAuth links accounts by email. Already shipped and not repeated here: Facebook, LinkedIn, Kakao, Naver, LINE, VK, TikTok, PayPal, Hugging Face, Salesforce, Cognito, Okta, Auth0, Zoom, Roblox, Dropbox, Kick, Vercel, Railway, Polar and Coinbase.
Last modified on October 9, 2026