Commit 3255340a authored by Anton's avatar Anton

Skip $auth.checkSession for users.callback route

parent 756c92b5
......@@ -30,6 +30,7 @@ Router.beforeEach((to, from, next) => {
else cb()
}
waitForStore(Router.app, () => {
if (to.name === 'users.callback') return next()
const redirectPath = Router.app.$store.state.auth.redirectTo
if (redirectPath) Router.app.$store.commit('auth/clearRedirect')
Router.app.$auth.checkSession(Router.app.$store).catch(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment