Merge branch 'test' into dev
gitea/salix/pipeline/head This commit looks good Details
gitea/salix/pipeline/pr-test This commit looks good Details

This commit is contained in:
Guillermo Bonet 2024-08-27 07:24:38 +02:00
commit d2a61cf18d
1 changed files with 3 additions and 2 deletions

View File

@ -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