(value: unknown)
| 100 | const validRefreshBody = { access_token: "tok2", token_type: "Bearer", expires_in: 3600 }; |
| 101 | |
| 102 | const jwtPart = (value: unknown): string => |
| 103 | Buffer.from(JSON.stringify(value)).toString("base64url"); |
| 104 | |
| 105 | const unsignedJwt = (claims: Record<string, unknown>, alg = "RS256"): string => |
| 106 | `${jwtPart({ alg, typ: "JWT" })}.${jwtPart(claims)}.sig`; |