tsoa-next / @tsoa-next/runtime / Security
Function: Security()
ts
function Security(name, scopes?): ClassDecorator & MethodDecorator;Defined in: packages/runtime/src/decorators/security.ts:16
Declares the security requirement for a controller or action.
Parameters
name
| string | { [name: string]: string[]; }
The security scheme name, or a full security requirement object.
scopes?
string[]
OAuth scopes required by the scheme when name is a string.
Returns
ClassDecorator & MethodDecorator
