chore: wip oauth

This commit is contained in:
Anthony Fu 2022-11-15 19:54:07 +08:00
parent 6755ed6f94
commit 6ea4879190
8 changed files with 75 additions and 10 deletions

View file

@ -1,6 +1,7 @@
<script setup lang="ts">
const token = useCookie('nuxtodon-token')
const router = useRouter()
// TODO: move to middleware
if (!token.value)
router.replace('/public')