惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
Microsoft Security Blog
Microsoft Security Blog
Recent Announcements
Recent Announcements
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Last Week in AI
Last Week in AI
罗磊的独立博客
腾讯CDC
云风的 BLOG
云风的 BLOG
月光博客
月光博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
宝玉的分享
宝玉的分享
U
Unit 42
I
InfoQ
D
DataBreaches.Net
Blog — PlanetScale
Blog — PlanetScale
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
V2EX
美团技术团队
IT之家
IT之家
Stack Overflow Blog
Stack Overflow Blog
F
Fortinet All Blogs
GbyAI
GbyAI
S
SegmentFault 最新的问题

Mintlify Blog

22 UX improvements to the web editor Introducing the Mintlify Help Center Starter Kit Introducing the collaborative editor built for teams and agents Workflows, rebuilt Is your documentation agent-ready? Mintlify raises $45M Series B led by Andreessen Horowitz and Salesforce Ventures 5 things you didn't know you could do in the Mintlify web editor The improved Mintlify CLI Docs on autopilot: From zero to self-maintaining with Mintlify The state of agent traffic in documentation (March 2026) How we built a virtual filesystem for our Assistant We Replaced Our Internal Wiki With a Slack Bot. You Should Too. 8 ways teams use Mintlify to keep docs updated automatically Documentation is your AI interface What three years of watching AI in production taught us Bridging two JSX runtimes: How we solved Astro's React children problem AI agents are shipping faster than anyone can document Knowledge management systems for technical teams Workflows: Automate documentation maintenance Mintlify acquires Helicone to redefine AI knowledge infrastructure Why more product managers are switching to Mintlify Auto-generating documentation sites from GitHub repos Your docs, your frontend, our content engine Take control of your documentation system Almost half your docs traffic is AI, time to understand the agent experience @mintlify for better docs, faster Mintlify for Enterprise Real llms.txt examples from leading tech companies (and what they got right) Mintlify + Claude Opus 4.6: Powering AI-native knowledge management Declaring Clankruptcy: An experiment in agent orchestration
Launch Week III Day 4: User Auth
Joshua Kim · 2024-06-27 · via Mintlify Blog

Launch Week Day 4 brings User Authentication to your docs 🔒.

When writing documentation, you may want to limit which user guides are shown to your customers.

With User Auth, identify your users and tailor your docs content to them.

Customized portals allow for more relevant and contextualized documentation, making it easier for developers to find and understand the information they need.

User Authentication allows you to configure a way for authenticating your users into the documentation with user-specific identifiers.

For example, you can pre-fill API keys, show certain endpoints only for your enterprise customers, and surface specific guides for customers based on the products and features they are using.

This can help streamline the onboarding process, helping new developers get up to speed more quickly with your product.

Before your users can access personalized content, they must be authenticated. Mintlify supports two methods of authenticating users:

1. Shared Session: Utilize the same session token used by your dashboard to authenticate users.

2. JWT: Use your own login flow to send user info to your docs via a JWT in the URL.

When writing content, you can use the `userContext` variable to access the information you have sent to your docs. Here's an example of how it would be implemented:

User Auth is an enterprise feature. {

 userContext.org === undefined

   ? <>To access this feature, first create an account at the <a href="https://app.mintlify.com/login">Mintlify app</a>.</>

   : userContext.org.plan !== 'enterprise'

     ? <>You are currently on the ${userContext.org.plan ?? 'free'} plan. To speak to our team about upgrading, [contact our sales team](mailto:[email protected]).</>

     : <>To request this feature for your enterprise org, [contact our team](mailto:[email protected]).</>

}

If you would like to prefill keys in the API Playground, you can return the inputs in the user information. This allows for a way to navigate the API Reference without having to leave elsewhere to retrieve their API key.

To learn more about how to implement user authentication for your developer portal, check out our auth documentation.

User Authentication is available for select enterprise organizations. Contact our sales team to get a demo today.

To stay updated for the last day of Launch Week, follow our Twitter/X or join our community!