We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6206803 commit 2afe9caCopy full SHA for 2afe9ca
1 file changed
lib/core/auth.js
@@ -27,11 +27,6 @@ export default class Auth {
27
if (process.browser) {
28
this.$storage.watchState('loggedIn', loggedIn => {
29
if (!routeOption(this.ctx.route, 'auth', false)) {
30
- // Disable redirect on refresh / direct load of a page.
31
- if (loggedIn && !this.ctx.from) {
32
- return
33
- }
34
-
35
this.redirect(loggedIn ? 'home' : 'logout')
36
}
37
})
0 commit comments