mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
fix: 🐛 Do not allow users to do certain things when logged out (would previously error)
This commit is contained in:
parent
b4e682a562
commit
ef1e0de9a8
2 changed files with 22 additions and 15 deletions
6
composables/SignedIn.ts
Normal file
6
composables/SignedIn.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
export const useSignedIn = () => {
|
||||
const tokenData = useTokenData();
|
||||
return computed(
|
||||
() => tokenData.value !== null && !!tokenData.value.access_token,
|
||||
);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue