Consolidate authentication code

This commit is contained in:
april
2024-01-03 10:01:15 -06:00
parent 73b11482ff
commit 912e4d1b0e
12 changed files with 206 additions and 114 deletions

View File

@@ -1,12 +1,12 @@
import { useMe } from "@/util/hooks";
import { useAuth } from "@/util/auth";
import { Container, Title } from "@mantine/core";
export default function Me() {
const me = useMe();
const { user } = useAuth();
return (
<Container>
<Title order={2}>{me.data?.username}</Title>
<Title order={2}>{user}</Title>
</Container>
);
}