Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds `Secret` and `UnlessOptions` interfaces, and reuses `Secret` in `SecretLoader`. Made these changes because I'd like to do something like this: ```ts import jwt, { Options, UnlessOptions } from 'koa-jwt' const jwtOptions: Options = { secret: 'its', key: 'a', algorithms: ['me'], cookie: 'mario', passthrough: true, } const jwtAllowList: UnlessOptions = { path: ['/ping'] } export const jwtMiddleware = jwt(jwtOptions).unless(jwtAllowList) ```
- Loading branch information