Skip to content

Commit

Permalink
missing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ulfgebhardt committed Apr 16, 2024
1 parent ee894a7 commit 1a45997
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions frontend/src/pages/auth/+Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,15 @@ import { inject, onBeforeMount } from 'vue'
import DefaultLayout from '#layouts/DefaultLayout.vue'
import AuthService from '#src/services/AuthService'
import { useAuthStore } from '#stores/authStore'
const authService = inject<AuthService>('authService')
const auth = useAuthStore()
onBeforeMount(async () => {
try {
const user = await authService?.signInCallback()
if (!user) {
throw new Error('Could not Sign In')
}
auth.save(user)
navigate('/')
} catch (error) {
// eslint-disable-next-line no-console
Expand Down

0 comments on commit 1a45997

Please sign in to comment.