Fix: Cleanup and SSR auth header fix

This commit is contained in:
aronmal 2024-02-11 23:01:42 +01:00
parent b28ceb8659
commit 2b9b5198fa
Signed by: aronmal
GPG key ID: 816B7707426FC612
5 changed files with 92 additions and 128 deletions

View file

@ -46,13 +46,13 @@ async function getUser() {
}
function NavUser() {
const [user] = createResource(() =>
getUser().then((e) => {
if (!e.success) console.log(1, e.message);
console.log(2, e);
return e;
}),
);
const [user] = createResource(async () => {
const user = await getUser();
if (!user.success) console.error("userInfo", user.message);
return user;
});
return (
<Show