Skip to content

Commit 06165a0

Browse files
jakulpi0
authored andcommitted
fix(oauth2): restore callback handling on static sites (#453)
1 parent ea08d39 commit 06165a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/schemes/oauth2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ export default class Oauth2Scheme {
128128
if (this.$auth.options.redirect && this.$auth.ctx.route.path !== this.$auth.options.redirect.callback) {
129129
return
130130
}
131-
// Callback flow is not supported in static generation
132-
if (process.server && process.static) {
131+
// Callback flow is not supported in server side
132+
if (process.server) {
133133
return
134134
}
135135

0 commit comments

Comments
 (0)