import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);

//0: { Type: "sub", Value: "1" }
//1: { Type: "AspNet.Identity.SecurityStamp", Value: "YEYDJ2S53T7CDGDELE4C4VAGJEJRHHSD" }
//2: { Type: "preferred_username", Value: "thangtq" }
//3: { Type: "name", Value: "thangtq" }
//4: { Type: "email", Value: "thangtq1009@gmail.com" }
//5: { Type: "email_verified", Value: "false" }
//6: { Type: "phone_number", Value: "0904669169" }
//7: { Type: "phone_number_verified", Value: "false" }
//8: { Type: "amr", Value: "pwd" }
//9: { Type: "idp", Value: "local" }
//10: { Type: "auth_time", Value: "1618813878" }


export default {
    state: {
        user: null
        
    },
    mutations: {
        UPDATE_USER(state, user) {
            //console.log(user);
            state.user = user
        },
    },
    actions: {},
    getters: {
        user: state => state.user,
    }
}
