lbx-jwt
Version:
Provides JWT authentication for loopback applications. Includes storing roles inside tokens and handling refreshing. Built-in reuse detection.
18 lines (17 loc) • 546 B
TypeScript
import { OASEnhancer, OpenApiSpec } from '@loopback/rest';
/**
* A spec enhancer to add bearer token OpenAPI security entry to
* `spec.component.securitySchemes`.
*/
export declare class SecuritySpecEnhancer implements OASEnhancer {
/**
* The name of the enhancer.
*/
readonly name: string;
/**
* Modifies the OpenApi specification.
* @param spec - The modification done to the OpenApi specification.
* @returns The modified OpenApi specification.
*/
modifySpec(spec: OpenApiSpec): OpenApiSpec;
}