Skip to main content

Module: main

This is the main entry point to the Auth.js library.

Based on the Request and Response Web standard APIs. Primarily used to implement framework-specific packages, but it can also be used directly.

Installation​

npm install @auth/core

Usage​

import { Auth } from "@auth/core"

const request = new Request("https://example.com"
const response = await Auth(request, {...})

console.log(response instanceof Response) // true

Resources​

Functions​

Interfaces​