{"version":3,"file":"B57dm_T7.js","sources":["../../../../utils/auth.ts"],"sourcesContent":["import api from \"~/api\";\n\nconst useAuthCheck = async (): Promise => {\n if (import.meta.server) return true\n try {\n await api.Auth.getCSRFToken()\n await api.User.getUserInfo()\n return true;\n } catch (error) {\n return false;\n }\n}\n\nexport {useAuthCheck}"],"names":["useAuthCheck","api"],"mappings":"kCAEA,MAAMA,EAAe,SAA8B,CAE3C,GAAA,CACM,aAAAC,EAAI,KAAK,eACT,MAAAA,EAAI,KAAK,cACR,QACK,CACL,MAAA,EACX,CACJ"}