(request: {
readonly path: string;
readonly method: string;
readonly body: string;
})
| 395 | /** Is this one of the authorization server's refresh grants? Counting them is |
| 396 | * how a "success" is shown to involve a real re-mint, not a cached token. */ |
| 397 | const isRefreshGrant = (request: { |
| 398 | readonly path: string; |
| 399 | readonly method: string; |
| 400 | readonly body: string; |
| 401 | }) => |
| 402 | request.path === "/token" && |
| 403 | request.method === "POST" && |
| 404 | request.body.includes("grant_type=refresh_token"); |
| 405 | |
| 406 | scenario( |
| 407 | "Credential persistence · contention on the vault write does not lose the refreshed credential", |
nothing calls this directly
no outgoing calls
no test coverage detected