Fix microsoft auth refresh
This commit is contained in:
parent
cbfd9eac1d
commit
faf7373dfd
1 changed files with 2 additions and 1 deletions
|
|
@ -103,9 +103,10 @@ class MsaTokenManager {
|
|||
}
|
||||
|
||||
async verifyTokens () {
|
||||
if (this.forceRefresh) try { await this.refreshTokens() } catch {}
|
||||
const at = this.getAccessToken()
|
||||
const rt = this.getRefreshToken()
|
||||
if (!at || !rt || this.forceRefresh) {
|
||||
if (!at || !rt) {
|
||||
return false
|
||||
}
|
||||
debug('[msa] have at, rt', at, rt)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue