From 06165a08dd9f4a6d1a7701382fc3a3566ddfb2bd Mon Sep 17 00:00:00 2001 From: Craig Blaszczyk Date: Thu, 12 Sep 2019 12:02:53 +0100 Subject: [PATCH] fix(oauth2): restore callback handling on static sites (#453) --- lib/schemes/oauth2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/schemes/oauth2.js b/lib/schemes/oauth2.js index 32b601832..9d8cc2d80 100644 --- a/lib/schemes/oauth2.js +++ b/lib/schemes/oauth2.js @@ -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 }