login fix part 2

This commit is contained in:
u4pak 2024-01-22 20:33:13 -08:00
parent 39fb924708
commit 90b2f05883
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@
"publish": "npm run create && ssh mc \"cd /home/PartypackProd; rm -rf ./Out\" && scp -r ./Out mc:/home/PartypackProd && ssh mc \"cd /home/PartypackProd/Out; npm i; pm2 restart PartypackProd --update-env\" && rm -rf ./Out",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"dev:all": "start cmd.exe /k \"cd ./Server && npm run dev\" && vite"
"dev:all": "start cmd.exe /k \"cd ./Server && npm run dev:watch\" && vite"
},
"dependencies": {
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",

View File

@ -17,7 +17,7 @@ export function SiteHeader() {
useEffect(() => {
(async () => {
const Data = await axios.get("/api/discord/url");
const Details: UserDetailInterface = cookies["UserDetails"] ? JSON.parse(decodeURI(Buffer.from(cookies["UserDetails"], "base64").toString())) : null;
const Details: UserDetailInterface = cookies["UserDetails"] ? JSON.parse(decodeURI(Buffer.from(cookies["UserDetails"], "hex").toString())) : null;
setState({
...state,