refactor: update composable names

This commit is contained in:
Anthony Fu 2022-11-18 05:32:03 +08:00
parent 787a55bea7
commit 4fc6e405e0
9 changed files with 46 additions and 34 deletions

View file

@ -9,3 +9,8 @@ export function useAppCookies() {
token,
}
}
export function useLoginState() {
const token = useCookie('nuxtodon-token')
return computed(() => !!token.value)
}