mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
Do not require refreshToken during auth
This commit is contained in:
@@ -37,10 +37,8 @@ describe('authentication api', () => {
|
||||
)
|
||||
);
|
||||
|
||||
it('rejects if refreshToken has a bad type', () =>
|
||||
expect(authentication.validateToken({token: 'foo', refreshToken: {}}),
|
||||
'to be rejected with', 'refreshToken must be a string'
|
||||
)
|
||||
it('should allow empty refreshToken', () =>
|
||||
expect(authentication.validateToken({token: 'foo', refreshToken: null}), 'to be fulfilled')
|
||||
);
|
||||
|
||||
it('rejects if accounts.current request is unexpectedly failed', () => {
|
||||
|
Reference in New Issue
Block a user