Commit 50921633 by 展昭

vuex中添加oidc

parent a78ef779
Showing with 11 additions and 11 deletions
......@@ -55,16 +55,16 @@ export default new Vuex.Store({
token,
any,
more,
// oidc: vuexOidcCreateStoreModule(oidcSettings,
// {
// isAuthenticatedBy: 'access_token',
// dispatchEventsOnWindow: true
// }, {
// userLoaded: async (user) => {
// const appid = localStorage.getItem('appid');
// console.log('user.access_token=',user.access_token);
// await getToken(user.access_token, appid);
// }
// })
oidc: vuexOidcCreateStoreModule(oidcSettings,
{
isAuthenticatedBy: 'access_token',
dispatchEventsOnWindow: true
}, {
userLoaded: async (user) => {
const appid = localStorage.getItem('appid');
console.log('user.access_token=',user.access_token);
await getToken(user.access_token, appid);
}
})
}
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment