fix(core): oauth popup blocked in safari (#8144)

fix(core): oauth popup blocked in safari

fix(core): standarize auth routes

fix AF-1352
This commit is contained in:
forehalo
2024-09-06 08:26:27 +00:00
parent be4df0f8ac
commit bffc294620
8 changed files with 64 additions and 50 deletions
+21
View File
@@ -66,6 +66,27 @@ export const topLevelRoutes = [
path: '/sign-in',
lazy: () => import('./pages/sign-in'),
},
{
path: '/magic-link',
lazy: () =>
import(
/* webpackChunkName: "auth" */ '@affine/core/pages/auth/magic-link'
),
},
{
path: '/oauth/login',
lazy: () =>
import(
/* webpackChunkName: "auth" */ '@affine/core/pages/auth/oauth-login'
),
},
{
path: '/oauth/callback',
lazy: () =>
import(
/* webpackChunkName: "auth" */ '@affine/core/pages/auth/oauth-callback'
),
},
{
path: '/redirect-proxy',
lazy: () => import('@affine/core/pages/redirect'),