Skip to content
Snippets Groups Projects
Commit c53b4541 authored by jackie / Andrea Ida Malkah Klaura's avatar jackie / Andrea Ida Malkah Klaura
Browse files

remove placeholders from auth store

parent 8e8bc732
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,6 @@ const oidcmgr = new oidc.UserManager({
})
const state = {
items: [],
user: {
name: '',
email: '',
......@@ -30,15 +29,11 @@ const state = {
}
const getters = {
items: state => state.items,
itemCount: state => state.items.length,
access_token: state => state.user.access_token,
user: state => state.user,
}
const mutations = {
addItem (state, item) {
state.items.push(item)
},
setUserProperties (state, user) {
state.userOIDC = user
state.user.logged_in = true
......@@ -70,10 +65,6 @@ const mutations = {
}
const actions = {
addItem ({commit}, item) {
commit('addItem', item)
},
fetchSteeringUser (ctx) {
axios.get(process.env.VUE_APP_API_STEERING + 'users/', {
withCredentials: true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment