Module: main
@auth/core
is the main entry point for the Auth.js library.
Based on the Request and Response Web standard APIs.
import { Auth } from "@auth/core"
const request = new Request("https://example.com"
const response = await Auth(request, {...})
console.log(response instanceof Response) // true
Primarily used to implement framework-specific packages, but it can also be used directly.
Installation​
- npm
- yarn
- pnpm
npm install @auth/core
yarn add @auth/core
pnpm add @auth/core