{"id":"f15df1a0-440f-4f8f-ba32-8bc27fdf773f","shortId":"gE54jG","kind":"skill","title":"WorkOS AuthKit Next.js Authentication Toolkit","tagline":"WorkOS AuthKit is a real authentication toolkit for Next.js applications. It gives agents a concrete integration target for login, sessions, RBAC, SSO, MFA, and user management backed by WorkOS docs and package releases.","description":"# WorkOS AuthKit Next.js Authentication Toolkit\n\nWorkOS AuthKit is a real authentication toolkit for Next.js applications. It gives agents a concrete integration target for login, sessions, RBAC, SSO, MFA, and user management backed by WorkOS docs and package releases.\n\n## Prerequisites\n\nnpm, pnpm, yarn, docker, go, rust, java\n\n## Installation\n\nUse the upstream install or setup path that matches your environment:\n- pnpm i @workos-inc/authkit-nextjs\n- yarn add @workos-inc/authkit-nextjs\n- Make sure the following values are present in your .env.local environment variables file. The client ID and API key can be found in the [WorkOS dashboard](https://dashboard.workos.com), and the redirect URI can also b...\n- Make sure this route matches the WORKOS_REDIRECT_URI variable and the configured redirect URI in your WorkOS dashboard. For instance if your redirect URI is http://localhost:3000/auth/callback then you'd put the above...\n\nRequirements and caveats from upstream:\n- WorkOS requires that you have a callback URL to redirect users back to after they've authenticated. In your Next.js app, [expose an API route](https://nextjs.org/docs/app/building-your-application/routing/route-handle...\n- When running in environments like Docker, set the baseURL explicitly to ensure the redirects point to the correct location.\n- | baseURL | undefined | The base URL to use for the redirect URI instead of the one in the request. **Required** if the app is being run in a container like docker where the hostname can be different from the one in t...\n\nBasic usage or getting-started notes:\n- or\n- ## Video tutorial\n- <a href=\"https://youtu.be/W8TmptLkEvA?feature=shared\" target=\"_blank\">\n\n- Source: https://github.com/workos/authkit-nextjs\n- Extracted from upstream docs: https://raw.githubusercontent.com/workos/authkit-nextjs/HEAD/README.md\n\n## Source\n\n- [Agent Skill Exchange](https://agentskillexchange.com/skills/workos-authkit-nextjs-authentication-toolkit/)","tags":["workos","authkit","nextjs","authentication","toolkit","skills","agentskillexchange","agent-skills","ai-agents","ai-tools","awesome-list","claude-code"],"capabilities":["skill","source-agentskillexchange","skill-workos-authkit-nextjs-authentication-toolkit","topic-agent-skills","topic-ai-agents","topic-ai-tools","topic-awesome-list","topic-claude-code","topic-codex","topic-cursor","topic-llm","topic-mcp","topic-npx-skills","topic-openclaw","topic-skills-catalog"],"categories":["skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/agentskillexchange/skills/workos-authkit-nextjs-authentication-toolkit","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add agentskillexchange/skills","source_repo":"https://github.com/agentskillexchange/skills","install_from":"skills.sh"}},"qualityScore":"0.454","qualityRationale":"deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 8 github stars · SKILL.md body (1,963 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-18T19:13:08.373Z","embedding":null,"createdAt":"2026-05-18T13:20:22.650Z","updatedAt":"2026-05-18T19:13:08.373Z","lastSeenAt":"2026-05-18T19:13:08.373Z","tsv":"'/authkit-nextjs':102,108 '/docs/app/building-your-application/routing/route-handle...':209 '/skills/workos-authkit-nextjs-authentication-toolkit/)':297 '/workos/authkit-nextjs':283 '/workos/authkit-nextjs/head/readme.md':290 '3000/auth/callback':170 'add':104 'agent':18,56,292 'agentskillexchange.com':296 'agentskillexchange.com/skills/workos-authkit-nextjs-authentication-toolkit/)':295 'also':141 'api':126,205 'app':202,250 'applic':15,53 'authent':4,11,42,49,198 'authkit':2,7,40,45 'b':142 'back':32,70,193 'base':232 'baseurl':218,229 'basic':270 'callback':188 'caveat':179 'client':123 'concret':20,58 'configur':155 'contain':256 'correct':227 'd':173 'dashboard':134,161 'dashboard.workos.com':135 'differ':264 'doc':35,73,287 'docker':81,215,258 'ensur':221 'env.local':118 'environ':96,119,213 'exchang':294 'explicit':219 'expos':203 'extract':284 'file':121 'follow':112 'found':130 'get':274 'getting-start':273 'github.com':282 'github.com/workos/authkit-nextjs':281 'give':17,55 'go':82 'hostnam':261 'id':124 'inc':101,107 'instal':85,89 'instanc':163 'instead':240 'integr':21,59 'java':84 'key':127 'like':214,257 'localhost':169 'locat':228 'login':24,62 'make':109,143 'manag':31,69 'match':94,147 'mfa':28,66 'next.js':3,14,41,52,201 'nextjs.org':208 'nextjs.org/docs/app/building-your-application/routing/route-handle...':207 'note':276 'npm':78 'one':243,267 'packag':37,75 'path':92 'pnpm':79,97 'point':224 'prerequisit':77 'present':115 'put':174 'raw.githubusercontent.com':289 'raw.githubusercontent.com/workos/authkit-nextjs/head/readme.md':288 'rbac':26,64 'real':10,48 'redirect':138,150,156,166,191,223,238 'releas':38,76 'request':246 'requir':177,183,247 'rout':146,206 'run':211,253 'rust':83 'session':25,63 'set':216 'setup':91 'skill':293 'skill-workos-authkit-nextjs-authentication-toolkit' 'sourc':280,291 'source-agentskillexchange' 'sso':27,65 'start':275 'sure':110,144 'target':22,60 'toolkit':5,12,43,50 'topic-agent-skills' 'topic-ai-agents' 'topic-ai-tools' 'topic-awesome-list' 'topic-claude-code' 'topic-codex' 'topic-cursor' 'topic-llm' 'topic-mcp' 'topic-npx-skills' 'topic-openclaw' 'topic-skills-catalog' 'tutori':279 'undefin':230 'upstream':88,181,286 'uri':139,151,157,167,239 'url':189,233 'usag':271 'use':86,235 'user':30,68,192 'valu':113 'variabl':120,152 've':197 'video':278 'worko':1,6,34,39,44,72,100,106,133,149,160,182 'workos-inc':99,105 'yarn':80,103","prices":[{"id":"14843cc6-047e-4b4f-a621-02d7bdd02a2e","listingId":"f15df1a0-440f-4f8f-ba32-8bc27fdf773f","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"agentskillexchange","category":"skills","install_from":"skills.sh"},"createdAt":"2026-05-18T13:20:22.650Z"}],"sources":[{"listingId":"f15df1a0-440f-4f8f-ba32-8bc27fdf773f","source":"github","sourceId":"agentskillexchange/skills/workos-authkit-nextjs-authentication-toolkit","sourceUrl":"https://github.com/agentskillexchange/skills/tree/main/skills/workos-authkit-nextjs-authentication-toolkit","isPrimary":false,"firstSeenAt":"2026-05-18T13:20:22.650Z","lastSeenAt":"2026-05-18T19:13:08.373Z"}],"details":{"listingId":"f15df1a0-440f-4f8f-ba32-8bc27fdf773f","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"agentskillexchange","slug":"workos-authkit-nextjs-authentication-toolkit","github":{"repo":"agentskillexchange/skills","stars":8,"topics":["agent-skills","ai-agents","ai-tools","awesome-list","claude-code","codex","cursor","llm","mcp","npx-skills","openclaw","skills-catalog"],"license":"mit","html_url":"https://github.com/agentskillexchange/skills","pushed_at":"2026-05-18T19:02:17Z","description":"The open catalog of AI agent skills — 2,000+ security-scanned skills for Claude Code, Cursor, Codex, and more.","skill_md_sha":"f72950d98995436e293b735b2ead7889be5379db","skill_md_path":"skills/workos-authkit-nextjs-authentication-toolkit/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/agentskillexchange/skills/tree/main/skills/workos-authkit-nextjs-authentication-toolkit"},"layout":"multi","source":"github","category":"skills","frontmatter":{"name":"WorkOS AuthKit Next.js Authentication Toolkit","description":"WorkOS AuthKit is a real authentication toolkit for Next.js applications. It gives agents a concrete integration target for login, sessions, RBAC, SSO, MFA, and user management backed by WorkOS docs and package releases."},"skills_sh_url":"https://skills.sh/agentskillexchange/skills/workos-authkit-nextjs-authentication-toolkit"},"updatedAt":"2026-05-18T19:13:08.373Z"}}