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
......@@ -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,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment