import{o as a,s as e,I as r,J as s,K as o,e as t,f as n,i}from"./index-9880b451.js";const l={__name:"login",setup:l=>(a((async a=>{new URLSearchParams(location.search).forEach(((e,r)=>{a[r]=e}));const t=a.event,n=a.code,i=a.state;"login"===t?await e.$platform.useProvider().login(n,i):"bind"===t&&e.$platform.useProvider().bind(n,i);let l=r("returnUrl");l?(s("returnUrl"),location.replace(l)):o({url:"/"})})),(a,e)=>{const r=i;return t(),n(r)})};export{l as default};
