diff --git a/src/router/index.ts b/src/router/index.ts index 3310c3b6..8b746748 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -61,7 +61,12 @@ router.beforeEach(async to => { return { path: '/auth' }; } // TODO: Убрать костыль с to.path - if (isAuth && token && to.path !== '/auth/reset/email') { + if ( + isAuth && + token && + to.path !== '/auth/reset/email' && + !to.path.startsWith('/auth/oauth-authorized') + ) { return { path: '/profile' }; } });