We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfc2247 commit ffda6b0Copy full SHA for ffda6b0
1 file changed
lib/schemes/oauth2.js
@@ -1,4 +1,4 @@
1
-import { encodeQuery, parseQuery } from '../utilities'
+import { encodeQuery, parseQuery, normalizePath } from '../utilities'
2
import nanoid from 'nanoid'
3
const isHttps = process.server ? require('is-https') : null
4
@@ -132,7 +132,7 @@ export default class Oauth2Scheme {
132
133
async _handleCallback (uri) {
134
// Handle callback only for specified route
135
- if (this.$auth.options.redirect && this.$auth.ctx.route.path !== this.$auth.options.redirect.callback) {
+ if (this.$auth.options.redirect && normalizePath(this.$auth.ctx.route.path) !== normalizePath(this.$auth.options.redirect.callback)) {
136
return
137
}
138
// Callback flow is not supported in server side
0 commit comments