PageSourceSearch

https://prod.norvana.ai/assets/js/auth.service-BtCh_40x.js

js norvana.ai collected 2026-10-05 12:22:34 UTC 1,389 bytes, 1 lines download raw bytes

1import{W as a,A as t,X as e}from"./pages-admin-ynIrHECU.js";const s={async login(s){const o=await a.post(t.AUTH.LOGIN,s);return o.data.access_token&&localStorage.setItem(e.AUTH_TOKEN,o.data.access_token),o.data.refresh_token&&localStorage.setItem(e.REFRESH_TOKEN,o.data.refresh_token),o.data.user?.id&&localStorage.setItem(e.USER_ID,String(o.data.user.id)),o.data},async logout(){try{await a.post(t.AUTH.LOGOUT)}finally{localStorage.removeItem(e.AUTH_TOKEN),localStorage.removeItem(e.REFRESH_TOKEN),localStorage.removeItem(e.USER_ID)}},async register(s){const o=await a.post(t.AUTH.REGISTER,s);return o.data.access_token&&localStorage.setItem(e.AUTH_TOKEN,o.data.access_token),o.data.refresh_token&&localStorage.setItem(e.REFRESH_TOKEN,o.data.refresh_token),o.data},getCurrentUser:async()=>(await a.get(t.AUTH.ME)).data,refreshToken:async e=>(await a.post(t.AUTH.REFRESH,{},{headers:{Authorization:`Bearer ${e}`}})).data,forgotPassword:async e=>(await a.post(t.AUTH.FORGOT_PASSWORD,{email:e})).data,resetPassword:async(e,s)=>(await a.post(t.AUTH.RESET_PASSWORD,{token:e,new_password:s})).data,async changePassword(s,o){const r=await a.post(t.AUTH.CHANGE_PASSWORD,{current_password:s,new_password:o});return r.data.access_token&&localStorage.setItem(e.AUTH_TOKEN,r.data.access_token),r.data.refresh_token&&localStorage.setItem(e.REFRESH_TOKEN,r.data.refresh_token),r.data}};export{s as a};

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.