@flexem/account
v0.1.0
Published
account utils
Downloads
15
Keywords
Readme
子系统对接账户
npm install @flexem/account
或者
yarn add @flexem/account
Examples:
const initLoad = new Init({
authUrl: appconst.idsServiceUrl, // eg:http://ids.testflexem.net:9080
subSystemName: '' //子系统名称
loginUrl:'' //首页跳转url
});
// 获取用户登录的用户信息
initLoad.getCurrentUser().then((res: any) => {
console.log(res);
});
// 自动刷新token
initLoad.init();
getCookie(cookieName: string, defaultValue = '');
setCookie(domain:string, cookieName: string, value: string, defaultDays = 90);
removeCookie(domain:string, cookieName: string);