Skip to content

Commit

Permalink
fix(oauth2 scheme): check if refresh token is defined before attempti…
Browse files Browse the repository at this point in the history
…ng to refresh
  • Loading branch information
JoaoPedroAS51 committed Mar 14, 2020
1 parent bcbd63e commit b1659bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/schemes/oauth2.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ export default class Oauth2Scheme {
// Get refresh token
const refreshToken = this.$auth.refreshToken.get()

// Refresh token is required but not available
if (!refreshToken) return

// Get refresh token status
const refreshTokenStatus = this.$auth.refreshToken.status()

Expand Down

0 comments on commit b1659bc

Please sign in to comment.