Skip to content

Commit

Permalink
chore: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SamCaliman committed Jul 5, 2024
1 parent 22a4a1e commit f486755
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/src/pages/redirect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {CollectionItemWithId, Result, EndpointError} from '@aeriajs/types'
const router = useRouter()
const userStore = useStore('user')
const metaStore = useStore('meta')
type SuccessfulAuthentication = {
user: CollectionItemWithId<'user'>,
Expand All @@ -27,7 +28,10 @@ onMounted(async ()=>{
return
}
//if authentication succeeds, login returned user and go to dashboard
userStore.$actions.setCurrentUser(result)
userStore.$actions.setCurrentUser(result)
await metaStore.$actions.describe({
roles:true
})
router.push('/dashboard')
}
})
Expand Down

0 comments on commit f486755

Please sign in to comment.