Authenticate individual users with one of the following methods.JSON Web Token (JWT): Custom system where you manage user tokens with full control over the login flow.
Pros of JWT:
Reduced risk of API endpoint abuse.
No CORS configuration.
No restrictions on API URLs.
Cons of JWT:
Must be compatible with your existing login flow.
Users log into your dashboard and docs separately.
OAuth 2.0: Third-party login integration like Google, GitHub, or other OAuth providers.
Pros of OAuth 2.0:
Heightened security standard.
No restrictions on API URLs.
Cons of OAuth 2.0:
Requires significant work if setting up an OAuth server for the first time.
Users log into your dashboard and docs separately.
Mintlify dashboard: Allow all of your dashboard users to access your docs.
Pros of Mintlify dashboard:
No configuration required.
Enables private preview deployments, restricting access to authenticated users only.
Cons of Mintlify dashboard:
Requires all users of your docs to have an account in your Mintlify dashboard.