little-wheels 1.2.9 → 1.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -27,7 +27,7 @@ export declare class AuthLogin {
27
27
  * 4. 获取授权Token
28
28
  * @throws {Error} 当SSO流程失败时抛出异常
29
29
  */
30
- SSOLogin(): Promise<void>;
30
+ SSOLogin(): Promise<unknown>;
31
31
  /**
32
32
  * 跳转到登录页面
33
33
  * @description
@@ -43,13 +43,19 @@ export declare class AuthLogin {
43
43
  */
44
44
  logout(): void;
45
45
  /**
46
- * 存储Token信息
46
+ * 设置Token信息
47
47
  * @param {TokenInfoType<number>} data - Token数据对象
48
48
  * @param {string} [type] - Token类型:
49
49
  * - 'auth'表示授权Token
50
50
  * - 不传表示普通Token
51
51
  */
52
52
  setToken(data: TokenInfoType<number>, type?: string): void;
53
+ /**
54
+ * 仅设置 Access Token 字符串
55
+ * 适用于通过 URL 传参等方式仅传递 Access Token 的场景
56
+ * @param {string} token - Access Token 字符串
57
+ */
58
+ setTokenStr(token: string): void;
53
59
  /**
54
60
  * 获取公司列表
55
61
  * @async