sessix-server 0.2.5 → 0.2.7

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/server.d.ts CHANGED
@@ -19,6 +19,8 @@ interface ServerInstance {
19
19
  openPairing: (duration?: number) => void;
20
20
  /** 运行时关闭配对窗口 */
21
21
  closePairing: () => void;
22
+ /** 重新生成 token(泄露后刷新),断开所有客户端并开启配对窗口 */
23
+ regenerateToken: () => Promise<string>;
22
24
  }
23
25
  interface ServerOptions {
24
26
  /** 覆盖 token(默认读取 ~/.sessix/token 或自动生成) */