Skip to content

Commit

Permalink
fix(oauth2): restore callback handling on static sites (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakul authored and pi0 committed Sep 12, 2019
1 parent ea08d39 commit 06165a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/schemes/oauth2.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ export default class Oauth2Scheme {
if (this.$auth.options.redirect && this.$auth.ctx.route.path !== this.$auth.options.redirect.callback) {
return
}
// Callback flow is not supported in static generation
if (process.server && process.static) {
// Callback flow is not supported in server side
if (process.server) {
return
}

Expand Down

0 comments on commit 06165a0

Please sign in to comment.