PageSourceSearch

https://tresda.institute/static/AuthAPI-CDX0rz0_.js

js tresda.institute collected 2026-09-24 15:03:36 UTC 2,099 bytes, 1 lines download raw bytes

1import{a as e,o as t,y as n}from"./axiosClient-DIdHMJPs.js";import{t as r}from"./backend-Bdnuuxew.js";import{W as i}from"./vendor-data-duqHV315.js";import{t as a}from"./base-pDeaXUr9.js";var o=1e4,s=null,c=new class extends a{getBaseURL(){return`/auth`}getCurrentUser({fresh:r=!1}={}){let i=`${n(!1)??``}|${e()??``}|${t()??``}`;if(!r&&s&&s.key===i&&Date.now()-s.at<o)return s.promise;let a=this.axios.get(`/me`);return s={key:i,promise:a,at:Date.now()},a.catch(()=>{s?.promise===a&&(s=null)}),a}regenerateApiKey(){return this.axios.post(`/regenerate_api_key`)}getApiKey(){return this.axios.get(`/api_key`)}regenerateBackofficeApiKey(){return this.axios.post(`/regenerate_backoffice_api_key`)}updateUser(e,t){return this.axios.post(`/${e}/update-user`,{...t})}listUsers(e){return this.axios.get(`/list-users`,{params:e})}searchUsers(e,t=100){return this.axios.get(`/search-users`,{params:{search:e,limit:t}})}getUser(e){return this.axios.get(`/${encodeURIComponent(e)}`)}async checkDomainSSO(e){return(await i.get(`${r()}/workspace/public/sso/check-email-or-domain`,{params:{email_or_domain:e}})).data}login(e,t,n=null){let r={email:e,password:t};return n&&(r.turnstile_token=n),this.axios.post(`/login`,r)}register(e,t,n=null,r=null,i=null,a=null,o=null){let s={email:e,password:t};return n&&(s.turnstile_token=n),r&&(s.referral_code=r),i&&(s.marketing_client_id=i),a&&(s.marketing_page_category=a),o&&(s.from_url=o),this.axios.post(`/register`,s)}verifyOtp(e,t){return this.axios.post(`/verify-otp`,{email:e,otp_code:t})}resendOtp(e){return this.axios.post(`/resend-otp`,{email:e})}resetPasswordRequest(e,t=null){let n={email:e};return t&&(n.turnstile_token=t),this.axios.post(`/reset-password-request`,n)}resetPassword(e,t,n=null){let r={reset_token:e,new_password:t};return n&&(r.turnstile_token=n),this.axios.post(`/reset-password`,r)}changePassword(e,t,n){return this.axios.post(`/change-password`,{user_id:e,current_password:t,new_password:n})}logout(){return this.axios.post(`/logout`,void 0,{timeout:5e3})}getUserFeatureFlags(e){return this.axios.get(`/${e}/feature-flags`)}};export{c as t};

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.