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

Run configured passive strategies to authenticate a request.

Parameters

request: IRequest

The incoming request

Return Type

Promise<IPrincipal | null>

The authenticated principal, or null if unauthenticated

Usage

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