feat: basic oauth
This commit is contained in:
parent
72b13f5265
commit
7ab17001f0
16 changed files with 199 additions and 106 deletions
12
components/account/AccountMe.client.vue
Normal file
12
components/account/AccountMe.client.vue
Normal file
|
@ -0,0 +1,12 @@
|
|||
<script setup lang="ts">
|
||||
const { currentUser } = useAppStore()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div p4>
|
||||
<!-- TODO: multiple account switcher -->
|
||||
<AccountInfo v-if="currentUser?.account" :account="currentUser.account" />
|
||||
<!-- TODO: dialog for select server -->
|
||||
<a v-else href="/api/mas.to/login" px2 py1 bg-teal6 text-white m2 rounded>Login</a>
|
||||
</div>
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue