fix refresh data carrying
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-08-03 16:21:00 +02:00
parent 84be087743
commit 122bd7b574
3 changed files with 10 additions and 4 deletions

View File

@ -81,8 +81,12 @@ describe ('gateway', () => {
});
it ('should automatically return new tokens', async () => {
const token = await authority.sign ('access_token', 60);
const refresh = await authority.sign ('refresh_token', 3600);
const token = await authority.sign ('access_token', 60, { data: 'foobar' });
const refresh = await authority.sign (
'refresh_token',
3600,
{ data: 'foobar' }
);
jasmine.clock ()
.tick (70000);
const resp = await get (
@ -94,6 +98,8 @@ describe ('gateway', () => {
expect (JSON.parse (resp.body as string).token_id)
.not
.toEqual (token.id);
expect (JSON.parse (resp.body as string).token_data)
.toEqual ('foobar');
});
it ('should correctly deliver token data', async () => {