typescript-rest-jwt
Version:
JWT authentication for typescript-rest via decorators.
9 lines (8 loc) • 318 B
TypeScript
/**
* Add auth to a route
*
* @param target The prototype of the class
* @param propertyKey The name of the method
* @param descriptor The descriptor
*/
export declare function AuthPath(path: string): (target: any, propertyKey?: string | undefined, descriptor?: TypedPropertyDescriptor<any> | undefined) => any;