(parsed: {
userId: string;
jti: string | null;
issuedAt: number | null;
})
| 50 | }; |
| 51 | |
| 52 | const assertNotRevoked = async (parsed: { |
| 53 | userId: string; |
| 54 | jti: string | null; |
| 55 | issuedAt: number | null; |
| 56 | }): Promise<void> => { |
| 57 | await assertJtiNotRevoked(parsed.jti); |
| 58 | await assertUserNotRevokedSince(parsed.userId, parsed.issuedAt); |
| 59 | }; |
| 60 | |
| 61 | const translateJwtError = (err: unknown): never => { |
| 62 | if (err instanceof ApiError) { |
no test coverage detected