function CurrentUser
Since 0.2.0
CurrentUser<T = unknown>(): ParamSource<T>

Binds the authenticated principal (ctx.request.user).

Type Parameters

T = unknown

Return Type

A principal source

Usage

import { CurrentUser } from "decorator-plugin/src/index.ts";