(res: express.Response, code: ProxyAuthErrorCode)
| 48 | type ProxyAuthErrorCode = keyof typeof ProxyAuthError; |
| 49 | |
| 50 | function rejectAuth(res: express.Response, code: ProxyAuthErrorCode) { |
| 51 | return res.status(401).json({ code, message: ProxyAuthError[code] }); |
| 52 | } |
| 53 | /** |
| 54 | * Represents the identity claim embedded in the Authorization header. |
| 55 | * The bearer token is a plain base64-encoded JSON string. |
no outgoing calls
no test coverage detected