tokens: add ip restriction
This commit is contained in:
@@ -60,7 +60,7 @@ describe('Profile API', function () {
|
||||
});
|
||||
|
||||
it('fails with expired token', async function () {
|
||||
const token = await tokens.add({ identifier: '0', clientId: 'clientid-0', expires: Date.now() - 2000 });
|
||||
const token = await tokens.add({ identifier: '0', clientId: 'clientid-0', expires: Date.now() - 2000, allowedIpRanges: '' });
|
||||
expect(token.accessToken).to.be.a('string');
|
||||
|
||||
const response = await superagent.get(`${serverUrl}/api/v1/profile`)
|
||||
|
||||
Reference in New Issue
Block a user