Do not require refreshToken during auth

This commit is contained in:
SleepWalker
2016-11-19 17:50:30 +02:00
parent 2653085f57
commit e4ccf8d193
4 changed files with 5 additions and 12 deletions

View File

@@ -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', () => {