create Socialite Login/Register

This commit is contained in:
Milos Holba
2021-12-16 14:07:33 +01:00
parent 73cd950054
commit f37c4f62b7
18 changed files with 509 additions and 1504 deletions

View File

@@ -0,0 +1,33 @@
<template>
<div>
<Spinner/>
</div>
</template>
<script>
import Spinner from '/resources/js/components/FilesView/Spinner'
export default {
name: 'SocialiteCallback',
components: {Spinner},
created () {
axios
.get(`/api${this.$route.fullPath}`)
.then(() => {
// Set login state
this.$store.commit('SET_AUTHORIZED', true)
// Go to files page
this.$router.push({name: 'Files'})
})
.catch((error) => {
this.$isSomethingWrong()
this.$router.push({name: 'Homepage'})
})
}
}
</script>