Skip to content

Commit

Permalink
fix(utilities): simplify check of tokenExpiresAt
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoPedroAS51 authored and pi0 committed Mar 15, 2020
1 parent bbbd025 commit 84b3a33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class TokenExpirationStatus {
tokenExpiresAt = this.$scheme._getTokenExpiration()
refreshTokenExpiresAt = this.$scheme._getRefreshTokenExpiration()

if (tokenExpiresAt === false) {
if (!tokenExpiresAt) {
return TokenExpirationStatusEnum.UNKNOWN
}
} catch (error) {
Expand Down

0 comments on commit 84b3a33

Please sign in to comment.