JavaScript SDKs
Auth0 JavaScript SDK libraries make it easy for developers to integrate with and secure any AI agent workflow.
Auth0 SDKs
Updated Auth0 SDKs to secure AI agent workflows:
Next.js
This SDK streamlines integrating Auth0 authentication and authorization services into Next.js applications. It supports:
- User authentication
- Tools for getting access tokens for supported social and enterprise identity providers
npm install @auth0/nextjs-auth0
Node.js
This library streamlines integrating Auth0's authentication and authorization services into Node.js applications. It supports:
- User authentication
- Tools for signing up users, managing user profiles, and securing API endpoints.
npm install auth0
Auth0 Fastify SDK
This SDK streamlines integrating Auth0 authentication and authorization services into Fastify applications. It supports:
- User authentication
- Tools for getting access tokens to call first-party APIs
npm i @auth0/auth0-fastify
Auth0 AI SDKs
Auth0 AI SDKs to streamline integrating your application with popular agentic frameworks:
Auth0 AI SDK
This SDK provides base abstractions for authentication and authorization in AI applications. It supports:
- Asynchronous user authentication using the Client Initiated Backchannel Authentication (CIBA) protocol
- OpenFGA-based filter for RAG
npm install @auth0/ai
Auth0 AI Components
This library helps to set up the React components that can be used in AI applications using Auth for GenAI. The components are styled using Tailwind CSS. It supports:
- Tools for getting access tokens for supported social and enterprise identity providers
npx @auth0/ai-components add FederatedConnections
Redis Store for Auth0 AI
This SDK provides a secure Redis-based data store implementation for use with the Auth0 AI SDKs. It supports:
- Securely encrypting data before storing it in Redis
- Organizing keys using namespaces
- Setting expiration times for stored data
npm install @auth0/ai-redis
Sample applications
Checkout our sample applications for JavaScript/TypeScript built with frameworks like LangGraph and Vercel AI.
- Assistant0 (Next.js): A fullstack AI personal assistant that consolidates digital life by dynamically accessing multiple tools to help stay organized and efficient.
- LangGraph version
- Vercel AI SDK version
- LlamaIndex version - Coming soon
- SmartHR Assistant (Next.js + LlamaIndex): A HR assistant that provides secure access to HR documents based on complex authorization rules.
- Agent0 (React + Fastify + Vercel AI SDK): A full-stack AI personal assistant powered by React and Fastify, that invokes your APIs using tool calls on a logged-in user's behalf.
- AI Samples: Explore our repository of sample applications showcasing Auth0's authentication and authorization capabilities in the context of generative AI applications.
- Auth0 AI SDK samples: Explore our repository of sample applications showcasing Auth0's authentication and authorization capabilities in the context of generative AI applications.
Guides & Tutorials
Checkout our guides for Next.js, LangChain, LlamaIndex, Vercel AI, and Genkit in JavaScript/TypeScript.