PageSourceSearch

https://hub.a11yplan.de/_nuxt/DCnrBho_.js

js a11yplan.de collected 2026-10-04 15:15:06 UTC 2,263 bytes, 2 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof globalThis<`u`?globalThis:typeof global<`u`?global:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._tracewayDebugIds=e._tracewayDebugIds||{},e._tracewayDebugIds[t]=`6749cea3-e7b7-44b6-b352-4f337ba6eab5`,e._tracewayDebugIdIdentifier=`traceway-dbid-6749cea3-e7b7-44b6-b352-4f337ba6eab5`)}catch{}})();import{g as e}from"./Chq5h5aZ.js";import"./Dt29iX-W.js";import{t}from"./CuxjomzU.js";import{n}from"./BBktuzx7.js";import{t as r}from"./H-eCsyA12.js";import{t as i}from"./CwMUh3uq.js";var a=class extends Error{code;status;constructor(e,t,n){super(e),this.code=t,this.status=n,this.name=`AuthClientError`}};function o(e){if(e.error){let{code:t,message:n,status:r}=e.error;throw new a(n||t||`Request failed`,t,r)}return e.data}var s=()=>{let a=n,s=a.useSession();return{client:a,session:s,isAuthenticated:e(()=>!!s.value?.data?.user),user:e(()=>s.value?.data?.user),signInWithMagicLink:async(e,t,n)=>o(await a.signIn.magicLink({email:e,callbackURL:t||`/`,name:n})),sendOTP:async e=>o(await a.emailOtp.sendVerificationOtp({email:e,type:`sign-in`})),verifyOTP:async(e,t)=>o(await a.signIn.emailOtp({email:e,otp:t})),logout:async()=>{t(),r(),i();try{await a.signOut()}catch{fetch(`/api/auth/sign-out`,{method:`POST`,credentials:`include`,keepalive:!0}).catch(()=>{})}window.location.href=`/auth/login`},updateProfile:async e=>{let t=await a.updateUser({name:e.name,image:e.image});if(!t.data)throw Error(`Failed to update profile`);return t.data},sendCurrentEmailCode:async e=>o(await a.emailOtp.sendVerificationOtp({email:e,type:`email-verification`})),requestEmailChange:async(e,t)=>o(await a.emailOtp.requestEmailChange({newEmail:e,...t?{otp:t}:{}})),confirmEmailChange:async(e,t)=>{let n=o(await a.emailOtp.changeEmail({newEmail:e,otp:t}));return await a.getSession({query:{disableCookieCache:!0}}),a.$store.notify(`$sessionSignal`),n},registerPasskey:e=>a.passkey.addPasskey({name:e}),signInWithPasskey:()=>a.signIn.passkey(),listPasskeys:()=>a.passkey.listUserPasskeys(),deletePasskey:e=>a.passkey.deletePasskey({id:e}),isPasskeySupported:()=>window.PublicKeyCredential!==void 0&&typeof window.PublicKeyCredential==`function`,admin:a.admin}};export{s as t};
2//# debugId=6749cea3-e7b7-44b6-b352-4f337ba6eab5

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.