Can I add sign-in without building forms?
Yes. Prefer hosted components (urls: { default: { type: "hosted" } } in Setup) — Hexclave hosts the sign-in UI and keeps it updated. Or mount <HexclaveHandler /> on your own /handler/[...] route if you want auth pages on your domain. See Hosted vs. Handler.
app/handler/[...hexclave]/page.tsx
<SignIn />, <SignUp />, <AccountSettings /> - and tune them with props. Want a fully custom UI? Build your own against the SDK’s auth methods.
Can I offer every login method?
Yes - and you flip each one on or off from the dashboard, no redeploy required.- Email & password with secure reset
- Magic links / OTP for passwordless sign-in
- Passkeys (WebAuthn) for phishing-resistant login
- 12 OAuth providers - Google, GitHub, Microsoft, Apple, Discord, Facebook, LinkedIn, Twitch, Spotify, GitLab, Bitbucket, and X - plus your own OpenID Connect provider
- Two-factor authentication (TOTP)
Can I get the current user anywhere in my app?
Yes. The same user object is available on the client (as a hook) and the server (as an async call), with full TypeScript types.{ or: "redirect" } and unauthenticated visitors are sent to sign-in automatically:
Can I manage my users?
Yes. Every sign-up creates a real profile - connected accounts, auth methods, metadata, and activity - not just a token. Search, filter, edit, and export from the dashboard, or do the same from code with the server SDK. Store your own data on a user withclientMetadata, clientReadOnlyMetadata, and serverMetadata, so you rarely need a separate users table of your own.
Can I verify sessions on my backend?
Yes. Hexclave issues standard JWTs you can verify locally against a JWKS endpoint - no round-trip to Hexclave on every request - so auth checks stay fast even in middleware and edge functions. See JWTs & session verification.Can I control who gets in?
Yes. Write sign-up rules to allow, reject, or restrict accounts by email domain, country, auth method, or built-in fraud-protection risk scores. Suspicious accounts can be held in a restricted state for review instead of blocked outright.Can I own my data and self-host?
Yes. Hexclave is open source (MIT client, AGPLv3 server). Run it fully self-hosted, export your users from the dashboard whenever you want, and avoid lock-in. The same SDK and APIs work on the managed service and self-hosted. A development environment is for building against Hexclave locally — some production-only setup (custom OAuth keys, custom email, payments) lives in the cloud dashboard.Start here
- Set up Hexclave in your project (a few minutes) — prefer hosted components; see Hosted vs. Handler.
- Turn on the auth methods you want (and mount
<HexclaveHandler />only if you chose the own-handler path). - Use
useUser()/getUser()to read the session and protect routes.