Faster frontend authentication.

This commit is contained in:
Antoine Nguyen
2025-09-19 18:15:56 +02:00
parent ac6182f534
commit 1e64d43911
5 changed files with 5 additions and 23 deletions
@@ -1,5 +1,4 @@
<script setup>
import { onMounted } from 'vue'
import { useAuthStore } from '@/stores'
import { useModoboaTheme } from '@/composables/theme'
@@ -10,10 +9,7 @@ const props = defineProps({
const authStore = useAuthStore()
const { enableTheme } = useModoboaTheme()
onMounted(() => {
authStore.completeLogin(props.redirectUrl)
})
await authStore.completeLogin(props.redirectUrl)
await enableTheme()
</script>