What is Auth.js?
mainAuth.js is a runtime-agnostic authentication library built on standard Web APIs. It is designed to integrate with various modern JavaScript frameworks to provide a secure, private, and extensible authentication experience.
Note: This documentation specifically covers next-auth@5.0.0-beta and later, as well as other framework-specific packages under the @auth/* namespace. For legacy next-auth@4.x.y documentation, refer to next-auth.js.org.