Files
hedena_gold/apps/admin-panel/dist/assets/IamCallback-CGYN2CBa.js
T
s.esmaeiliandCursor 7bbdc6cbda Commit release build artifacts for admin, user-app, and API.
Refresh hashed frontend bundles and the API release bundle after build:release.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-16 00:05:48 +03:30

2 lines
866 B
JavaScript

import{d as r,x as c,y as n,b as i,l as m,o as d}from"./index-Cs-R0M3s.js";import{u as _}from"./auth-BQj0UJJa.js";const l={style:{"min-height":"100vh",display:"grid","place-items":"center"}},h=r({__name:"IamCallback",setup(p){const t=m(),o=_();return c(async()=>{const e=new URLSearchParams(window.location.search);if(sessionStorage.removeItem("gb_admin_iam_sso_checked"),e.get("error")||!e.get("code")||!e.get("state")){sessionStorage.setItem("gb_admin_iam_sso_skip","1"),await t.replace("/auth/login");return}try{const{data:s}=await n.post("admin/auth/sso/callback",{code:e.get("code"),state:e.get("state")}),a={...s};delete a.roles,delete a.ut,o.inject(a),await t.replace("/dashboard/ecommerce")}catch{sessionStorage.setItem("gb_admin_iam_sso_skip","1"),await t.replace("/auth/login")}}),(e,s)=>(d(),i("div",l,"در حال ورود..."))}});export{h as default};