mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +00:00
removed SocialiteCallback.vue
This commit is contained in:
@@ -1,37 +0,0 @@
|
||||
<template>
|
||||
<Spinner />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Spinner from '../../components/FilesView/Spinner'
|
||||
import { events } from '../../bus'
|
||||
|
||||
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) => {
|
||||
if (error.response.status === 401) {
|
||||
events.$emit('alert:open', {
|
||||
title: error.response.data.message,
|
||||
})
|
||||
} else {
|
||||
this.$isSomethingWrong()
|
||||
}
|
||||
|
||||
this.$router.push({ name: 'SignIn' })
|
||||
})
|
||||
},
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user