fix: 🐛 Do not allow users to do certain things when logged out (would previously error)

This commit is contained in:
Jesse Wierzbinski 2024-04-27 20:55:23 -10:00
parent b4e682a562
commit ef1e0de9a8
No known key found for this signature in database
2 changed files with 22 additions and 15 deletions

6
composables/SignedIn.ts Normal file
View file

@ -0,0 +1,6 @@
export const useSignedIn = () => {
const tokenData = useTokenData();
return computed(
() => tokenData.value !== null && !!tokenData.value.access_token,
);
};