mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-15 19:50:05 +00:00
tests: fix e2e tests
This commit is contained in:
@@ -189,6 +189,19 @@ test('Refresh token fails when used for the wrong client', async ({ request }) =
|
||||
})
|
||||
.then((r) => r.text());
|
||||
|
||||
// Perform the exchange
|
||||
const refreshResponse = await request.post('/api/oidc/token', {
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
form: {
|
||||
grant_type: 'refresh_token',
|
||||
client_id: clientId,
|
||||
refresh_token: refreshToken,
|
||||
client_secret: clientSecret
|
||||
}
|
||||
});
|
||||
|
||||
expect(refreshResponse.status()).toBe(400);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user