We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69ff06a commit 14c8515Copy full SHA for 14c8515
types/zwjsbridge/index.d.ts
@@ -70,8 +70,9 @@ interface ZWJSBridge {
70
71
/**
72
* 获取单点的路过的票据
73
+ * @param options 必须传空对象,否则获取的 ticketId 无效
74
*/
- ssoTicket(): Promise<{
75
+ ssoTicket(options: Record<string, never>): Promise<{
76
/** 是否支持获取 */
77
result: boolean;
78
/** 票据,可通过此票据获取用户信息 */
types/zwjsbridge/zwjsbridge-tests.ts
@@ -1,6 +1,6 @@
1
(async () => {
2
ZWJSBridge.onReady(() => {
3
- ZWJSBridge.ssoTicket();
+ ZWJSBridge.ssoTicket({});
4
5
ZWJSBridge.setLocalStorage({
6
key: "key",
0 commit comments