Function: Auth
main.Auth
â–¸ Auth(request
, config
): Promise
<Response
>
Core functionality provided by Auth.js.
Receives a standard Request and returns a Response.
Example
import Auth from "@auth/core"
const request = new Request("https://example.com")
const response = await AuthHandler(request, {
providers: [...],
secret: "...",
trustHost: true,
})
See
Parameters​
Name | Type |
---|---|
request | Request |
config | AuthConfig |
Returns​
Promise
<Response
>