Function
refreshGrantsIn
(
requests: ReadonlyArray<{ readonly path: string; readonly body: string }>,
)
Source from the content-addressed store, hash-verified
| 128 | |
| 129 | /** Every refresh-token grant the authorization server was asked for. */ |
| 130 | const refreshGrantsIn = ( |
| 131 | requests: ReadonlyArray<{ readonly path: string; readonly body: string }>, |
| 132 | ) => |
| 133 | requests.filter( |
| 134 | (request) => request.path === "/token" && request.body.includes("grant_type=refresh_token"), |
| 135 | ); |
| 136 | |
| 137 | interface TokenEndpointCall { |
| 138 | readonly host: string; |
Tested by
no test coverage detected