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({ ...@@ -17,7 +17,6 @@ const oidcmgr = new oidc.UserManager({
}) })
const state = { const state = {
items: [],
user: { user: {
name: '', name: '',
email: '', email: '',
...@@ -30,15 +29,11 @@ const state = { ...@@ -30,15 +29,11 @@ const state = {
} }
const getters = { const getters = {
items: state => state.items, access_token: state => state.user.access_token,
itemCount: state => state.items.length, user: state => state.user,
} }
const mutations = { const mutations = {
addItem (state, item) {
state.items.push(item)
},
setUserProperties (state, user) { setUserProperties (state, user) {
state.userOIDC = user state.userOIDC = user
state.user.logged_in = true state.user.logged_in = true
...@@ -70,10 +65,6 @@ const mutations = { ...@@ -70,10 +65,6 @@ const mutations = {
} }
const actions = { const actions = {
addItem ({commit}, item) {
commit('addItem', item)
},
fetchSteeringUser (ctx) { fetchSteeringUser (ctx) {
axios.get(process.env.VUE_APP_API_STEERING + 'users/', { axios.get(process.env.VUE_APP_API_STEERING + 'users/', {
withCredentials: true, 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