"use strict";(globalThis.webpackChunk_affine_web=globalThis.webpackChunk_affine_web||[]).push([[3749],{73749:(e,a,r)=>{r.r(a),r.d(a,{Component:()=>o,loader:()=>n});var l=r(53216);let t=r(67448).z.enum(["google",...Object.values(l.Vs)]),n=async({request:e})=>{let a=new URL(e.url).searchParams,r=a.get("provider"),n=a.get("redirect_uri")??a.get("callback_url");if(!n)return null;await fetch("/api/auth/sign-out");let o=t.safeParse(r);if(o.success){let e=o.data;"google"===e&&(e=l.Vs.Google),location.href=`https://insider.affine.pro/oauth/login?provider=${e}&redirect_uri=${encodeURIComponent(n)}`}return null},o=()=>null}}]); //# sourceMappingURL=chunk.3749.907ab525.js.map