Fern offers four ways to authenticate users on your documentation site.
A shared password for the entire site or multiple passwords mapped to roles
Corporate credentials for internal docs
Self-managed auth integrated with your login system
Fern-managed auth via your OAuth provider
JWT and OAuth share the same capabilities — the difference is who manages the auth flow. Both can be used for login-only gating, or combined with RBAC and API key injection for granular access control and pre-filled API keys.
JWT, OAuth, and SSO are all powered by a browser cookie called fern_token that tells Fern who the user is and what they can access. The token can carry user roles for RBAC, API keys for the API Explorer, or simply verify that a user is logged in.
Password protection works differently — it uses a shared password rather than per-user tokens.