Home

Awesome

<p align="center"> <br/> <a href="https://authjs.dev" target="_blank"><img width="96px" src="https://authjs.dev/img/logo-sm.png" /></a> <h3 align="center">Auth.js</h3> <p align="center">Authentication for the Web.</p> <p align="center">Open Source. Full Stack. Own Your Data.</p> <p align="center" style="align: center;"> <a href="https://x.com/authjs" ><img src="https://shields.io/badge/Follow @authjs-000?logo=x&style=flat-square" alt="X (formerly known Twitter)" /></a> <a href="https://github.com/nextauthjs/next-auth/releases"><img src="https://img.shields.io/npm/v/next-auth/latest?style=flat-square&label=latest%20stable" alt="NPM next-auth@latest release" /></a> <a href="https://github.com/nextauthjs/next-auth/releases"><img src="https://img.shields.io/npm/v/next-auth/beta?style=flat-square&label=latest%20NextAuth.js v5" alt="NPM next-auth@beta release" /></a> <!-- TODO: Should count `@auth/core` when NextAuth.js v5 is released as stable. --> <a href="https://www.npmtrends.com/next-auth"><img src="https://img.shields.io/npm/dm/next-auth?style=flat-square&color=cyan" alt="Downloads" /></a> <a href="https://github.com/nextauthjs/next-auth/stargazers"><img src="https://img.shields.io/github/stars/nextauthjs/next-auth?style=flat-square&color=orange" alt="Github Stars" /></a> <!-- <a href="https://codecov.io/gh/nextauthjs/next-auth" ><img alt="Codecov" src="https://img.shields.io/codecov/c/github/nextauthjs/next-auth?token=o2KN5GrPsY&style=flat-square&logo=codecov"></a> --> <img src="https://shields.io/badge/TypeScript-3178C6?logo=TypeScript&logoColor=fff&style=flat-square" alt="TypeScript" /> </p> <p align="center"> Auth.js is a set of open-source packages that are built on standard Web APIs for authentication in modern applications with any framework on any platform in any JS runtime. </p> <p align="center"> Need help? See <a href="https://authjs.dev">authjs.dev</a> for the documentation, or <a href="https://discord.authjs.dev"> join our community on Discord&nbsp; <img src="https://assets-global.website-files.com/6257adef93867e50d84d30e2/636e0a69f118df70ad7828d4_icon_clyde_blurple_RGB.svg" height=12 alt="TypeScript" /> </a> . </p> <p align="center"> <kbd>Sponsored</kbd> Looking for a hosted alternative? <a href="https://go.clerk.com/5115vfK" target="_blank">Use Clerk ā†’</a> </p> </p>

Features

Flexible and easy to use

Own your data

Auth.js can be used with or without a database.

Secure by default

Advanced configuration allows you to define your routines to handle controlling what accounts are allowed to sign in, for encoding and decoding JSON Web Tokens and to set custom cookie security policies and session properties, so you can control who can sign in and how often sessions have to be re-validated.

TypeScript

Auth.js libraries are written with type safety in mind. Check out the docs for more information.

Security

If you think you have found a vulnerability (or are not sure) in Auth.js or any of the related packages (i.e. Adapters), we ask you to read our Security Policy to reach out responsibly. Please do not open Pull Requests/Issues/Discussions before consulting with us.

Acknowledgments

Auth.js is made possible thanks to all of its contributors.

<a href="https://github.com/nextauthjs/next-auth/graphs/contributors"> <img width="500px" src="https://contrib.rocks/image?repo=nextauthjs/next-auth" /> </a> <div> <a href="https://vercel.com?utm_source=nextauthjs&utm_campaign=oss"></a> </div>

Sponsors

We have an OpenCollective for companies and individuals looking to contribute financially to the project!

<!--sponsors start--> <table> <tbody> <tr> <td align="center" valign="top"> <a href="https://clerk.com?utm_source=sponsorship&utm_medium=github&utm_campaign=authjs&utm_content=sponsor" target="_blank"> <img height="96" src="https://avatars.githubusercontent.com/u/49538330?s=200&v=4" alt="Clerk Logo" /> </a><br /> <div>Clerk</div> <sub>šŸ’µ</sub> </td> <td align="center" valign="top"> <a href="https://a0.to/signup/nextauthjs" target="_blank"> <img height="96" src="https://avatars.githubusercontent.com/u/2824157?v=4" alt="Auth0 Logo" /> </a><br /> <div>Auth0</div> <sub>šŸ’µ</sub> </td> <td align="center" valign="top"> <a href="https://fusionauth.io" target="_blank"> <img height="96" src="https://avatars.githubusercontent.com/u/41974756?s=200&v=4" alt="FusionAuth Logo" /> </a><br /> <div>FusionAuth</div> <sub>šŸ’µ</sub> </td> <td align="center" valign="top"> <a href="https://stytch.com" target="_blank"> <img height="96" src="https://avatars.githubusercontent.com/u/69983493?s=200&v=4" alt="Stytch Logo" /> </a><br /> <div>Stytch</div> <sub>šŸ’µ</sub> </td> <td align="center" valign="top"> <a href="https://prisma.io" target="_blank"> <img height="96" src="https://avatars.githubusercontent.com/u/17219288?s=200&v=4" alt="Prisma Logo" /> </a><br /> <div>Prisma</div> <sub>šŸ’µ</sub> </td> <td align="center" valign="top"> <a href="https://neon.tech" target="_blank"> <img height="96" src="https://avatars.githubusercontent.com/u/77690634?v=4" alt="Neon Logo" /> </a><br /> <div>Neon</div> <sub>šŸ’µ</sub> </td> </tr> <tr> <td align="center" valign="top"> <a href="https://www.beyondidentity.com" target="_blank"> <img height="96" src="https://avatars.githubusercontent.com/u/69811361?s=200&v=4" alt="Beyond Identity Logo" /> </a><br /> <div>Beyond Identity</div> <sub>šŸ’µ</sub> </td> <td align="center" valign="top"> <a href="https://lowdefy.com" target="_blank"> <img height="96" src="https://avatars.githubusercontent.com/u/47087496?s=200&v=4" alt="Lowdefy Logo" /> </a><br /> <div>Lowdefy</div> <sub>šŸ’µ</sub> </td> <td align="center" valign="top"> <a href="https://www.descope.com" target="_blank"> <img height="96" src="https://avatars.githubusercontent.com/u/97479186?s=200&v=4" alt="Descope Logo" /> </a><br /> <div>Descope</div> <sub>šŸ’µ</sub> </td> <td align="center" valign="top"> <a href="https://badass.dev" target="_blank"> <img height="96" src="https://avatars.githubusercontent.com/u/136839242?v=4" alt="Badass Courses Logo" /> </a><br /> <div>Badass Courses</div> <sub>šŸ’µ</sub> </td> <td align="center" valign="top"> <a href="https://github.com/encoredev/encore" target="_blank"> <img height="96" src="https://avatars.githubusercontent.com/u/50438175?v=4" alt="Encore Logo" /> </a><br /> <div>Encore</div> <sub>šŸ’µ</sub> </td> <td align="center" valign="top"> <a href="https://sent.dm/?ref=auth.js" target="_blank"> <img width="108" src="https://avatars.githubusercontent.com/u/153308555?v=4" alt="Sent.dm Logo" /> </a><br /> <div>Sent.dm</div> <sub>šŸ’µ</sub> </td> </tr> <tr> <td align="center" valign="top"> <a href="https://arcjet.com/?ref=auth.js" target="_blank"> <img width="108" src="https://avatars.githubusercontent.com/u/24397786?s=200&v=4" alt="Arcjet Logo" /> </a><br /> <div>Arcjet</div> <sub>šŸ’µ</sub> </td> <td align="center" valign="top"> <a href="https://route4me.com/?ref=auth.js" target="_blank"> <img width="108" src="https://avatars.githubusercontent.com/u/7936820?v=4" alt="Route4Me Logo" /> </a><br /> <div>Route4Me</div> <sub>šŸ’µ</sub> </td> <td align="center" valign="top"> <a href="https://www.netlight.com/" target="_blank"> <img height="96" src="https://avatars.githubusercontent.com/u/1672348?s=200&v=4" alt="Netlight logo" /> </a><br /> <div>Netlight</div> <sub>ā˜ļø</sub> </td> <td align="center" valign="top"> <a href="https://checklyhq.com" target="_blank"> <img height="96" src="https://avatars.githubusercontent.com/u/25982255?s=200&v=4" alt="Checkly Logo" /> </a><br /> <div>Checkly</div> <sub>ā˜ļø</sub> </td> <td align="center" valign="top"> <a href="https://superblog.ai/" target="_blank"> <img height="96" src="https://d33wubrfki0l68.cloudfront.net/cdc4a3833bd878933fcc131655878dbf226ac1c5/10cd6/images/logo_bolt_small.png" alt="superblog Logo" /> </a><br /> <div>superblog</div> <sub>ā˜ļø</sub> </td> <td align="center" valign="top"> <a href="https://vercel.com" target="_blank"> <img height="96" src="https://avatars.githubusercontent.com/u/14985020?s=200&v=4" alt="Vercel Logo" /> </a><br /> <div>Vercel</div> <sub>ā˜ļø</sub> </td> </tr> </tbody> </table> <br /> <!--sponsors end-->

Contributing

We're open to all community contributions! If you'd like to contribute in any way, please first read our Contributing Guide.

[!NOTE] The Auth.js/NextAuth.js project is not provided by, nor otherwise affiliated with Vercel Inc. or its subsidiaries. Any contributions to this project by individuals affiliated with Vercel are made in their personal capacity.

License

ISC