deb
This commit is contained in:
parent
2cc02b35c5
commit
6abed0e448
1 changed files with 2 additions and 0 deletions
|
|
@ -242,10 +242,12 @@ export class ManagementManager {
|
||||||
const grant = await this.storage.managementStorage.getGrant(appUserId, requestorPub)
|
const grant = await this.storage.managementStorage.getGrant(appUserId, requestorPub)
|
||||||
|
|
||||||
if (!grant) {
|
if (!grant) {
|
||||||
|
this.logger(ERROR, "No grant found", appUserId, requestorPub)
|
||||||
return { state: 'authRequired' }
|
return { state: 'authRequired' }
|
||||||
}
|
}
|
||||||
|
|
||||||
if (grant.expires_at_unix > 0 && grant.expires_at_unix < Date.now()) {
|
if (grant.expires_at_unix > 0 && grant.expires_at_unix < Date.now()) {
|
||||||
|
this.logger(ERROR, "Grant expired", appUserId, requestorPub)
|
||||||
return { state: 'authRequired' }
|
return { state: 'authRequired' }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue