| 88 | } |
| 89 | |
| 90 | interface IUsersOptions extends IBaseOptions { |
| 91 | /** |
| 92 | * If you simply want to check basic auth against one or multiple static credentials, you can pass those |
| 93 | * credentials in the users option. |
| 94 | * |
| 95 | * Example: |
| 96 | * const users = { alice: '1234', bob: 'correcthorsebatterystaple' } |
| 97 | * app.use(basicAuth({ users, challenge: true }), myHandler) |
| 98 | */ |
| 99 | users: { [username: string]: string } |
| 100 | } |
| 101 | |
| 102 | interface IAuthorizerOptions extends IBaseOptions { |
| 103 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…