UNPKG

qlfy-unified-login

Version:

实现统一认证登陆功能的逻辑插件,无实际渲染标签,内置统一登陆跳转、统一登录token获取、统一登陆token刷新等功能;

24 lines (23 loc) 837 B
export declare const componentState: { componentId: string; }; /** 退出登陆方法 */ export declare function logout(): any; /** 获取统一登陆token */ export declare function getToken(): any; /** 方法 -- 跳转至登陆页 */ export declare function goLogin(): void; /** 获取统一认证登陆返回信息 */ export declare function getLoginInfo(): any; /** * @description 获取跳转至登录页的链接 * @param {string} loginPageBaseAddress 登录页ip地址 * @param {string} clientId 应用id * @param {string} clientSecret 应用密钥 * @param {string} redirectUrl 重定向地址 * @returns {string} */ export declare function getLoginUrl($props: any): string; /** 方法 -- 获取登出链接*/ export declare function getLogoutUrl($props: any): string; export declare function generateUUID(): string;