method IAuthStrategy.authenticate
IAuthStrategy.authenticate(request: IRequest): Promise<IPrincipal | null>

Attempt to authenticate the request.

Parameters

request: IRequest

The incoming request

Return Type

Promise<IPrincipal | null>

The authenticated principal, or null if no credentials found

Usage

import { type IAuthStrategy } from "auth-plugin/src/index.ts";