@flexem/account
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

子系统对接账户

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);

Readme

Keywords

Package Sidebar

Install

npm i @flexem/account

Weekly Downloads

0

Version

0.1.0

License

ACCOUNT

Unpacked Size

20.4 kB

Total Files

14

Last publish

Collaborators

  • flexem-npm
  • flexemdev
  • yoli799480165
  • songkaige
  • wwbgo
  • alecliu