1import{n as _,d as m,u as l,s as d,r as f,a as p}from"./BwiywTlr.js";import{u as h}from"./DvJakqkG.js";import{z as k,a2 as v,G as y,a7 as x,P as g}from"./pEjZETfw.js";const w={class:"flex h-screen w-full flex-col items-center justify-center gap-2"},z=k({__name:"redirect",async setup(A){let t,s;const{setToken:o}=_(),{getSession:c}=m(),{query:i}=l(),r=d("vkid_sdk:codeVerifier");return[t,s]=v(async()=>h("auth-vk",async()=>{const{code:a,state:n,device_id:e}=i,{token:u}=await $fetch("/api/auth/vk/login",{method:"POST",body:{code:a,state:n,device_id:e,code_verifier:r.value}});return o(u),await c(),f("/",{external:!0})},{server:!1,immediate:!0})),await t,s(),(a,n)=>{const e=p;return g(),y("main",w,[x(e,{name:"i-mingcute-loading-fill",class:"animate-spin",size:"4rem"})])}}});export{z as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.