Merge branch 'test' into dev
This commit is contained in:
commit
d2a61cf18d
|
@ -29,8 +29,9 @@ module.exports = Self => {
|
|||
return token;
|
||||
|
||||
// Schedule to remove current token
|
||||
setTimeout(() => {
|
||||
Self.logout(token.id);
|
||||
setTimeout(async() => {
|
||||
if (await models.AccessToken.findById(token.id))
|
||||
await Self.logout(token.id);
|
||||
}, courtesyTime * 1000);
|
||||
|
||||
// Get scopes
|
||||
|
|
Loading…
Reference in New Issue