fix: refs #7811 Tests
This commit is contained in:
parent
1fac261682
commit
83f3a05721
|
@ -29,8 +29,9 @@ module.exports = Self => {
|
||||||
return token;
|
return token;
|
||||||
|
|
||||||
// Schedule to remove current token
|
// Schedule to remove current token
|
||||||
setTimeout(() => {
|
setTimeout(async() => {
|
||||||
Self.logout(token.id);
|
if (await models.AccessToken.findById(token.id))
|
||||||
|
await Self.logout(token.id);
|
||||||
}, courtesyTime * 1000);
|
}, courtesyTime * 1000);
|
||||||
|
|
||||||
// Get scopes
|
// Get scopes
|
||||||
|
|
Loading…
Reference in New Issue