added socialite provider for the user

This commit is contained in:
Milos Holba
2021-12-20 15:15:05 +01:00
parent f37c4f62b7
commit 22ae148a22
13 changed files with 280 additions and 88 deletions

View File

@@ -48,6 +48,17 @@ const actions = {
router.push({name: 'SignIn'})
})
},
socialiteRedirect: ({commit}, provider) => {
axios
.get(`/api/socialite/${provider}/redirect`)
.then((response) => {
if(response.data.url) {
window.location.href = response.data.url
}
})
.catch(() => this.$isSomethingWrong())
},
addToFavourites: (context, folder) => {
let addFavourites = []
let items = [folder]