Skip to main content

JavaScript SDKs

Auth0 JavaScript SDK libraries make it easy for developers to integrate with and secure any AI agent workflow.

note

We value your feedback! To ask questions, report issues, or request new frameworks and providers, connect with us on GitHub.

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
ctrl+C

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
ctrl+C

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
ctrl+C

AI Framework SDKs

AI Framework 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:

npm install @auth0/ai
ctrl+C

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
ctrl+C

Auth0 AI for LangChain

This SDK provides building blocks for using Auth for GenAI with LangChain and LangGraph. It supports:

  • A RAG Retriever for using OpenFGA
  • Tools for implementing asynchronous user authentication
  • Tools for getting access tokens for third-party connections
  • OpenFGA-based tool authorizers
npm install @auth0/ai-langchain
ctrl+C

Auth0 AI for Vercel AI SDK

This SDK provides building blocks for using Auth for GenAI with the Vercel AI SDK. It includes tools for implementing asynchronous user authentication, tools for getting access tokens for third-party connections, building blocks to handle interrupts, and OpenFGA-based tool authorizers. It supports:

  • Tools for implementing asynchronous user authentication
  • Tools for getting access tokens for third-party connections
  • OpenFGA-based tool authorizers
npm install @auth0/ai-vercel
ctrl+C

Auth0 AI for LlamaIndex

This SDK provides building blocks for using Auth for GenAI with LlamaIndex. Includes a RAG Retriever for using OpenFGA, tools for implementing asynchronous user authentication, tools for getting access tokens for third-party connections, and OpenFGA-based tool authorizers. It supports:

  • A RAG Retriever for using OpenFGA
  • Tools for implementing asynchronous user authentication
  • Tools for getting access tokens for third-party connections
  • OpenFGA-based tool authorizers
npm install @auth0/ai-llamaindex
ctrl+C

Auth0 AI for Genkit

This SDK provides building blocks for using Auth for GenAI with Genkit. Includes a RAG Retriever for using OpenFGA, tools for implementing asynchronous user authentication, tools for getting access tokens for third-party connections, and OpenFGA-based tool authorizers. It supports:

  • A RAG Retriever for using OpenFGA
  • OpenFGA-based tool authorizer and re-ranker
npm install @auth0/ai-genkit
ctrl+C