fix refresh data carrying
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -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 () => {
|
||||
|
Reference in New Issue
Block a user