feat: basic oauth
This commit is contained in:
parent
72b13f5265
commit
7ab17001f0
16 changed files with 199 additions and 106 deletions
17
pages/login/callback.vue
Normal file
17
pages/login/callback.vue
Normal file
|
@ -0,0 +1,17 @@
|
|||
<script setup lang="ts">
|
||||
const { query } = useRoute()
|
||||
|
||||
onMounted(async () => {
|
||||
const { login } = useAppStore()
|
||||
await login(query as any)
|
||||
await nextTick()
|
||||
await nextTick()
|
||||
location.pathname = '/'
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
Login...
|
||||
</div>
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue