Merge branch 'test' into dev
This commit is contained in:
commit
4d820f1003
|
@ -30,8 +30,11 @@ module.exports = Self => {
|
|||
|
||||
// Schedule to remove current token
|
||||
setTimeout(async() => {
|
||||
if (await models.AccessToken.findById(token.id))
|
||||
try {
|
||||
await Self.logout(token.id);
|
||||
} catch (error) {
|
||||
// FIXME: Crash if do throw new Error(error)
|
||||
}
|
||||
}, courtesyTime * 1000);
|
||||
|
||||
// Get scopes
|
||||
|
|
Loading…
Reference in New Issue