Files
tehran_tala/apps/user-app-v2/dist/assets/IamCallback-DckPJ7Rm.js
T
s.esmaeiliandClaude Opus 5.5 2bbd9408dd build: rebuild the server bundle, admin panel and both apps from main
Fresh release output after merging dev: apps/api/release (server
bundle, migrations and the database client) and the three front-end
dist folders. All three front-ends type-check clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 10:24:53 +03:30

2 lines
782 B
JavaScript

import{d as c,O as n,o as i,s as o,c as l,C as m,f as p}from"./index-CMIHv7G_.js";const d={style:{"min-height":"100vh",display:"grid","place-items":"center"}},_=c({__name:"IamCallback",setup(g){const a=m(),s=n();return i(async()=>{const e=new URLSearchParams(window.location.search);if(sessionStorage.setItem("gb_iam_sso_checked","1"),e.get("error")||!e.get("code")||!e.get("state")){await a.replace({name:"login"});return}try{const t=await o.ssoCallback(e.get("code"),e.get("state"));s.login(t.token,t.customer.id,t.customer.mobile);try{const r=await o.getExpertIdentity();s.setSalesExpert(r.isSalesExpert)}catch{s.setSalesExpert(!1)}await a.replace({name:"home"})}catch{await a.replace({name:"login"})}}),(e,t)=>(p(),l("div",d,"در حال ورود..."))}});export{_ as default};