@arcblock/did-connect-js 1.30.0 → 4.0.0-beta.10

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.
Files changed (124) hide show
  1. package/{lib/adapters/detect.d.cts → dist/adapters/detect.d.ts} +3 -5
  2. package/dist/adapters/detect.d.ts.map +1 -0
  3. package/dist/adapters/detect.js +13 -0
  4. package/dist/adapters/detect.js.map +1 -0
  5. package/dist/adapters/express.d.ts +40 -0
  6. package/dist/adapters/express.d.ts.map +1 -0
  7. package/dist/adapters/express.js +30 -0
  8. package/dist/adapters/express.js.map +1 -0
  9. package/dist/adapters/hono.d.ts +49 -0
  10. package/dist/adapters/hono.d.ts.map +1 -0
  11. package/dist/adapters/hono.js +176 -0
  12. package/dist/adapters/hono.js.map +1 -0
  13. package/dist/authenticator/base.d.ts +21 -0
  14. package/dist/authenticator/base.d.ts.map +1 -0
  15. package/dist/authenticator/base.js +109 -0
  16. package/dist/authenticator/base.js.map +1 -0
  17. package/dist/authenticator/wallet.d.ts +252 -0
  18. package/dist/authenticator/wallet.d.ts.map +1 -0
  19. package/dist/authenticator/wallet.js +590 -0
  20. package/dist/authenticator/wallet.js.map +1 -0
  21. package/dist/handlers/base.d.ts +25 -0
  22. package/dist/handlers/base.d.ts.map +1 -0
  23. package/dist/handlers/base.js +48 -0
  24. package/dist/handlers/base.js.map +1 -0
  25. package/dist/handlers/util.d.ts +48 -0
  26. package/dist/handlers/util.d.ts.map +1 -0
  27. package/dist/handlers/util.js +805 -0
  28. package/dist/handlers/util.js.map +1 -0
  29. package/dist/handlers/wallet.d.ts +96 -0
  30. package/dist/handlers/wallet.d.ts.map +1 -0
  31. package/dist/handlers/wallet.js +129 -0
  32. package/dist/handlers/wallet.js.map +1 -0
  33. package/dist/index.d.ts +11 -0
  34. package/dist/index.d.ts.map +1 -0
  35. package/dist/index.js +9 -0
  36. package/dist/index.js.map +1 -0
  37. package/dist/protocol.d.ts +14 -0
  38. package/dist/protocol.d.ts.map +1 -0
  39. package/dist/protocol.js +37 -0
  40. package/dist/protocol.js.map +1 -0
  41. package/dist/schema/claims.d.ts +11 -0
  42. package/dist/schema/claims.d.ts.map +1 -0
  43. package/dist/schema/claims.js +226 -0
  44. package/dist/schema/claims.js.map +1 -0
  45. package/dist/schema/index.d.ts +4 -0
  46. package/dist/schema/index.d.ts.map +1 -0
  47. package/dist/schema/index.js +89 -0
  48. package/dist/schema/index.js.map +1 -0
  49. package/dist/storage/kv.d.ts +31 -0
  50. package/dist/storage/kv.d.ts.map +1 -0
  51. package/dist/storage/kv.js +54 -0
  52. package/dist/storage/kv.js.map +1 -0
  53. package/dist/types.d.ts +53 -0
  54. package/dist/types.d.ts.map +1 -0
  55. package/dist/types.js +2 -0
  56. package/dist/types.js.map +1 -0
  57. package/dist/utils/helpers.d.ts +19 -0
  58. package/dist/utils/helpers.d.ts.map +1 -0
  59. package/dist/utils/helpers.js +77 -0
  60. package/dist/utils/helpers.js.map +1 -0
  61. package/package.json +51 -107
  62. package/LICENSE +0 -13
  63. package/README.md +0 -210
  64. package/esm/_virtual/rolldown_runtime.mjs +0 -8
  65. package/esm/adapters/detect.d.mts +0 -11
  66. package/esm/adapters/detect.mjs +0 -16
  67. package/esm/adapters/express.d.mts +0 -48
  68. package/esm/adapters/express.mjs +0 -39
  69. package/esm/adapters/hono.d.mts +0 -57
  70. package/esm/adapters/hono.mjs +0 -164
  71. package/esm/authenticator/base.d.mts +0 -23
  72. package/esm/authenticator/base.mjs +0 -88
  73. package/esm/authenticator/wallet.d.mts +0 -270
  74. package/esm/authenticator/wallet.mjs +0 -556
  75. package/esm/did/did-connect/package.mjs +0 -118
  76. package/esm/handlers/base.d.mts +0 -32
  77. package/esm/handlers/base.mjs +0 -37
  78. package/esm/handlers/util.d.mts +0 -70
  79. package/esm/handlers/util.mjs +0 -739
  80. package/esm/handlers/wallet.d.mts +0 -120
  81. package/esm/handlers/wallet.mjs +0 -139
  82. package/esm/index.d.mts +0 -8
  83. package/esm/index.mjs +0 -8
  84. package/esm/node_modules/valibot/dist/index.mjs +0 -736
  85. package/esm/protocol.d.mts +0 -15
  86. package/esm/protocol.mjs +0 -40
  87. package/esm/schema/claims.d.mts +0 -16
  88. package/esm/schema/claims.mjs +0 -216
  89. package/esm/schema/index.d.mts +0 -29
  90. package/esm/schema/index.mjs +0 -75
  91. package/esm/storage/kv.d.mts +0 -33
  92. package/esm/storage/kv.mjs +0 -55
  93. package/esm/types.d.mts +0 -55
  94. package/esm/types.mjs +0 -1
  95. package/lib/_virtual/rolldown_runtime.cjs +0 -31
  96. package/lib/adapters/detect.cjs +0 -18
  97. package/lib/adapters/express.cjs +0 -41
  98. package/lib/adapters/express.d.cts +0 -48
  99. package/lib/adapters/hono.cjs +0 -167
  100. package/lib/adapters/hono.d.cts +0 -57
  101. package/lib/authenticator/base.cjs +0 -91
  102. package/lib/authenticator/base.d.cts +0 -23
  103. package/lib/authenticator/wallet.cjs +0 -565
  104. package/lib/authenticator/wallet.d.cts +0 -270
  105. package/lib/did/did-connect/package.cjs +0 -121
  106. package/lib/handlers/base.cjs +0 -40
  107. package/lib/handlers/base.d.cts +0 -32
  108. package/lib/handlers/util.cjs +0 -759
  109. package/lib/handlers/util.d.cts +0 -70
  110. package/lib/handlers/wallet.cjs +0 -139
  111. package/lib/handlers/wallet.d.cts +0 -119
  112. package/lib/index.cjs +0 -16
  113. package/lib/index.d.cts +0 -8
  114. package/lib/node_modules/valibot/dist/index.cjs +0 -756
  115. package/lib/protocol.cjs +0 -46
  116. package/lib/protocol.d.cts +0 -15
  117. package/lib/schema/claims.cjs +0 -218
  118. package/lib/schema/claims.d.cts +0 -16
  119. package/lib/schema/index.cjs +0 -79
  120. package/lib/schema/index.d.cts +0 -29
  121. package/lib/storage/kv.cjs +0 -57
  122. package/lib/storage/kv.d.cts +0 -33
  123. package/lib/types.cjs +0 -0
  124. package/lib/types.d.cts +0 -55
@@ -1,270 +0,0 @@
1
- import BaseAuthenticator from "./base.cjs";
2
-
3
- //#region src/authenticator/wallet.d.ts
4
- interface ApplicationInfo {
5
- name: string;
6
- description: string;
7
- icon: string;
8
- link?: string;
9
- path?: string;
10
- publisher?: string;
11
- }
12
- interface ChainInfo {
13
- id: string;
14
- type: string;
15
- host: string;
16
- }
17
- interface WalletAuthenticatorConfig {
18
- wallet: any;
19
- appInfo: ApplicationInfo | ((params: any) => ApplicationInfo | Promise<ApplicationInfo>);
20
- memberAppInfo?: ApplicationInfo | ((params: any) => ApplicationInfo | Promise<ApplicationInfo>) | null;
21
- delegator?: any;
22
- delegation?: string | ((params: any) => string | Promise<string>);
23
- timeout?: number;
24
- chainInfo?: ChainInfo | ((params: any) => ChainInfo | Promise<ChainInfo>);
25
- baseUrl?: string;
26
- tokenKey?: string;
27
- }
28
- declare class WalletAuthenticator extends BaseAuthenticator {
29
- wallet: any;
30
- appInfo: any;
31
- memberAppInfo: any;
32
- chainInfo: any;
33
- delegator: any;
34
- delegation: any;
35
- baseUrl: string;
36
- tokenKey: string;
37
- timeout: number;
38
- static formatDisplay(display: any): string;
39
- /**
40
- * Creates an instance of DID Authenticator.
41
- *
42
- * @class
43
- * @param {object} config
44
- * @param {WalletObject|Function} config.wallet - wallet instance {@see @ocap/wallet} or a function that returns wallet instance
45
- * @param {WalletObject|Function} [config.delegator] - the party that authorizes `wallet` to perform actions on behalf of `wallet`
46
- * @param {string|Function} [config.delegation] - the jwt token that proves delegation relationship
47
- * @param {ApplicationInfo|Function} config.appInfo - application basic info or a function that returns application info
48
- * @param {ChainInfo|Function} config.chainInfo - application chain info or a function that returns chain info
49
- * @param {Number} [config.timeout=8000] - timeout in milliseconds when generating claim
50
- * @param {object} [config.baseUrl] - url to assemble wallet request uri, can be inferred from request object
51
- * @param {string} [config.tokenKey='_t_'] - query param key for `token`
52
- */
53
- constructor({
54
- wallet,
55
- appInfo,
56
- memberAppInfo,
57
- delegator,
58
- delegation,
59
- timeout,
60
- chainInfo,
61
- baseUrl,
62
- tokenKey
63
- }: WalletAuthenticatorConfig);
64
- /**
65
- * Generate a deep link url that can be displayed as QRCode for DID Wallet to consume
66
- *
67
- * @method
68
- * @param {object} params
69
- * @param {string} params.baseUrl - baseUrl inferred from request object
70
- * @param {string} params.pathname - wallet callback pathname
71
- * @param {string} params.token - action token
72
- * @param {object} params.query - params that should be persisted in wallet callback url
73
- * @returns {string}
74
- */
75
- uri({
76
- baseUrl,
77
- pathname,
78
- token,
79
- query
80
- }?: {
81
- baseUrl?: string;
82
- pathname?: string;
83
- token?: string;
84
- query?: Record<string, any>;
85
- }): string;
86
- /**
87
- * Compute public url to return to wallet
88
- *
89
- * @method
90
- * @param {string} pathname
91
- * @param {object} params
92
- * @returns {string}
93
- */
94
- getPublicUrl(pathname: string, params?: Record<string, any>, baseUrl?: string): string;
95
- /**
96
- * Sign a plain response, usually on auth success or error
97
- *
98
- * @method
99
- * @param {object} params
100
- * @param {object} params.response - response
101
- * @param {string} params.errorMessage - error message, default to empty
102
- * @param {string} params.successMessage - success message, default to empty
103
- * @param {string} params.nextWorkflow - https://github.com/ArcBlock/ABT-DID-Protocol#concatenate-multiple-workflow
104
- * @param {string} params.nextUrl - tell wallet do open this url in webview
105
- * @param {object} params.cookies - key-value pairs to be set as cookie before open nextUrl
106
- * @param {object} params.storages - key-value pairs to be set as localStorage before open nextUrl
107
- * @param {string} baseUrl
108
- * @param {object} request
109
- * @returns {Promise<object>} { appPk, agentPk, authInfo }
110
- */
111
- signResponse({
112
- response,
113
- errorMessage,
114
- successMessage,
115
- nextWorkflow,
116
- nextUrl,
117
- cookies,
118
- storages
119
- }: {
120
- response?: any;
121
- errorMessage?: string;
122
- successMessage?: string;
123
- nextWorkflow?: string;
124
- nextUrl?: string;
125
- cookies?: Record<string, any>;
126
- storages?: any;
127
- }, baseUrl: string, request: any, extraParams?: Record<string, any>): Promise<any>;
128
- /**
129
- * Sign a auth response that returned to wallet: tell the wallet the appInfo/chainInfo
130
- *
131
- * @method
132
- * @param {object} params
133
- * @param {object} params.claims - info required by application to complete the auth
134
- * @param {string} params.pathname - pathname to assemble callback url
135
- * @param {string} params.baseUrl - baseUrl
136
- * @param {object} params.challenge - random challenge to be included in the body
137
- * @param {object} params.extraParams - extra query params and locale
138
- * @param {object} params.request
139
- * @param {object} params.context
140
- * @param {string} params.context.token - action token
141
- * @param {number} params.context.currentStep - current step
142
- * @param {string} [params.context.sharedKey] - shared key between app and wallet
143
- * @param {string} [params.context.encryptionKey] - encryption key from wallet
144
- * @param {Function} [params.context.mfaCode] - function used to generate mfa code
145
- * @param {string} params.context.userDid - decoded from req.query, base58
146
- * @param {string} params.context.userPk - decoded from req.query, base58
147
- * @param {string} params.context.didwallet - DID Wallet os and version
148
- * @returns {Promise<object>} { appPk, agentPk, sharedKey, authInfo }
149
- */
150
- sign({
151
- context,
152
- request,
153
- claims,
154
- pathname,
155
- baseUrl,
156
- challenge,
157
- extraParams
158
- }: {
159
- context: any;
160
- request: any;
161
- claims: any;
162
- pathname?: string;
163
- baseUrl?: string;
164
- challenge?: string;
165
- extraParams?: Record<string, any>;
166
- }): Promise<any>;
167
- /**
168
- * Determine chainInfo on the fly
169
- *
170
- * @param {object} params - contains the context of this request
171
- * @param {object|undefined} [info=undefined] - chain info object or function
172
- * @returns {Promise<ChainInfo>}
173
- * @memberof WalletAuthenticator
174
- */
175
- getChainInfo(params: any, info?: any): Promise<ChainInfo>;
176
- /**
177
- * Determine appInfo/memberAppInfo on the fly
178
- *
179
- * @param {object} params - contains the context of this request
180
- * @param {string} key - appInfo | memberAppInfo
181
- * @returns {Promise<ApplicationInfo>}
182
- * @memberof WalletAuthenticator
183
- */
184
- getAppInfo(params: any, key?: 'appInfo' | 'memberAppInfo'): Promise<any>;
185
- getWalletInfo(params: any): Promise<any>;
186
- getDelegator(params: any): Promise<any>;
187
- getDelegation(params: any): Promise<any>;
188
- /**
189
- * Verify a DID auth response sent from DID Wallet
190
- *
191
- * @method
192
- * @param {object} data
193
- * @param {string} [locale=en]
194
- * @param {boolean} [enforceTimestamp=true]
195
- * @returns Promise<boolean>
196
- */
197
- verify(data: any, locale?: string, enforceTimestamp?: boolean): Promise<{
198
- token: any;
199
- userDid: string;
200
- userPk: any;
201
- claims: any;
202
- action: any;
203
- challenge: any;
204
- timestamp: string;
205
- }>;
206
- genRequestedClaims({
207
- claims,
208
- context,
209
- extraParams
210
- }: {
211
- claims: any;
212
- context: any;
213
- extraParams: Record<string, any>;
214
- }): Promise<any[]>;
215
- getClaimInfo({
216
- claim,
217
- context,
218
- extraParams
219
- }: {
220
- claim: any;
221
- context: any;
222
- extraParams: Record<string, any>;
223
- }): Promise<any>;
224
- signature({
225
- claim,
226
- context,
227
- extraParams
228
- }: {
229
- claim: any;
230
- context: any;
231
- extraParams: Record<string, any>;
232
- }): Promise<{
233
- type: string;
234
- description: any;
235
- origin: string;
236
- typeUrl: any;
237
- display: string;
238
- method: any;
239
- digest: any;
240
- chainInfo: any;
241
- meta: any;
242
- mfa: any;
243
- nonce: any;
244
- requirement: any;
245
- }>;
246
- prepareTx({
247
- claim,
248
- context,
249
- extraParams
250
- }: {
251
- claim: any;
252
- context: any;
253
- extraParams: Record<string, any>;
254
- }): Promise<{
255
- type: string;
256
- description: any;
257
- partialTx: string;
258
- display: string;
259
- requirement: any;
260
- chainInfo: any;
261
- meta: any;
262
- mfa: any;
263
- nonce: any;
264
- }>;
265
- _validateAppInfo(info: any, allowEmpty?: boolean): any;
266
- _isValidChainInfo(x: any): boolean;
267
- tryWithTimeout<T>(asyncFn: () => Promise<T>, label?: string): Promise<T>;
268
- }
269
- //#endregion
270
- export { ApplicationInfo, ChainInfo, WalletAuthenticatorConfig, WalletAuthenticator as default };
@@ -1,121 +0,0 @@
1
- const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
-
3
- //#region package.json
4
- var require_package = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
5
- module.exports = {
6
- "name": "@arcblock/did-connect-js",
7
- "description": "Helper function to setup DID Connect support on a node.js web server",
8
- "type": "module",
9
- "version": "1.20.2",
10
- "author": {
11
- "name": "wangshijun",
12
- "email": "shijun@arcblock.io",
13
- "url": "https://github.com/wangshijun"
14
- },
15
- "contributors": ["wangshijun <shijun@arcblock.io> (https://github.com/wangshijun)"],
16
- "bugs": {
17
- "url": "https://github.com/ArcBlock/blockchain/issues",
18
- "email": "shijun@arcblock.io"
19
- },
20
- "publishConfig": { "access": "public" },
21
- "dependencies": {
22
- "@arcblock/did": "workspace:*",
23
- "@arcblock/jwt": "workspace:*",
24
- "@arcblock/validator": "workspace:*",
25
- "@ocap/client": "workspace:*",
26
- "@ocap/mcrypto": "workspace:*",
27
- "@ocap/util": "workspace:*",
28
- "@ocap/wallet": "workspace:*",
29
- "cors": "^2.8.5",
30
- "debug": "^4.4.3",
31
- "json-stable-stringify": "^1.0.1",
32
- "lodash": "^4.17.23",
33
- "tweetnacl-sealedbox-js": "^1.2.0"
34
- },
35
- "devDependencies": {
36
- "@arcblock/did-agent-storage-memory": "^1.8.0",
37
- "@arcblock/did-connect-storage-memory": "^1.8.0",
38
- "@ocap/e2e-test": "workspace:*",
39
- "@types/cors": "^2.8.17",
40
- "@types/debug": "^4.1.12",
41
- "@types/json-stable-stringify": "^1.0.36",
42
- "@types/lodash": "^4.17.13",
43
- "@types/node": "^22.7.5",
44
- "axios": "^1.13.4",
45
- "remark-cli": "^10.0.1",
46
- "remark-preset-github": "^4.0.4",
47
- "hono": "^4.7.0",
48
- "tsdown": "^0.18.4",
49
- "tweetnacl": "^1.0.3"
50
- },
51
- "remarkConfig": { "plugins": ["preset-github", [{ "repository": "ArcBlock/blockchain" }]] },
52
- "homepage": "https://www.arcblock.io/docs/did-connect-sdk",
53
- "keywords": [
54
- "blockchain",
55
- "arcblock",
56
- "sdk",
57
- "nodejs"
58
- ],
59
- "license": "Apache-2.0",
60
- "sideEffects": false,
61
- "main": "./lib/index.cjs",
62
- "module": "./esm/index.mjs",
63
- "types": "./esm/index.d.mts",
64
- "exports": {
65
- ".": {
66
- "types": "./esm/index.d.mts",
67
- "import": "./esm/index.mjs",
68
- "default": "./lib/index.cjs"
69
- },
70
- "./lib/schema": {
71
- "types": "./esm/schema/index.d.mts",
72
- "import": "./esm/schema/index.mjs",
73
- "default": "./lib/schema/index.cjs"
74
- },
75
- "./lib/schema/*": {
76
- "types": "./esm/schema/*.d.mts",
77
- "import": "./esm/schema/*.mjs",
78
- "default": "./lib/schema/*.cjs"
79
- },
80
- "./lib/*.js": {
81
- "types": "./esm/*.d.mts",
82
- "import": "./esm/*.mjs",
83
- "default": "./lib/*.cjs"
84
- },
85
- "./lib/*": {
86
- "types": "./esm/*.d.mts",
87
- "import": "./esm/*.mjs",
88
- "default": "./lib/*.cjs"
89
- }
90
- },
91
- "files": ["lib", "esm"],
92
- "repository": {
93
- "type": "git",
94
- "url": "https://github.com/ArcBlock/blockchain/tree/master/did/did-connect"
95
- },
96
- "scripts": {
97
- "lint": "biome check",
98
- "lint:fix": "biome check --write",
99
- "docs": "bun run gen-dts && bun run gen-docs && bun run cleanup-docs && bun run format-docs",
100
- "cleanup-docs": "node ../../scripts/cleanup-docs.js docs/README.md $npm_package_name",
101
- "gen-docs": "jsdoc2md lib/**/*.js lib/**/**/*.js > docs/README.md",
102
- "gen-dts": "j2d lib/index.js",
103
- "format-docs": "remark . -o",
104
- "test": "bun test",
105
- "coverage": "npm run test -- --coverage",
106
- "build": "tsdown",
107
- "build:watch": "tsdown -w",
108
- "clean": "rm -rf lib esm"
109
- },
110
- "resolutions": { "tweetnacl": "1.0.3" },
111
- "gitHead": "87990c8b5e215107fc587c1ced0d6b3e2cd2483e"
112
- };
113
- }));
114
-
115
- //#endregion
116
- Object.defineProperty(exports, 'default', {
117
- enumerable: true,
118
- get: function () {
119
- return require_package();
120
- }
121
- });
@@ -1,40 +0,0 @@
1
- Object.defineProperty(exports, '__esModule', { value: true });
2
- const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
3
- const require_protocol = require('../protocol.cjs');
4
- let node_events = require("node:events");
5
- let lodash_omit = require("lodash/omit");
6
- lodash_omit = require_rolldown_runtime.__toESM(lodash_omit);
7
-
8
- //#region src/handlers/base.ts
9
- var BaseHandler = class extends node_events.EventEmitter {
10
- /**
11
- * Creates an instance of DID Auth Handlers.
12
- *
13
- * @class
14
- * @param {object} config
15
- * @param {function} config.pathTransformer - function to transform path when generate action;
16
- * @param {object} config.tokenStorage - function to generate action token
17
- * @param {object} config.authenticator - Authenticator instance that can to jwt sign/verify
18
- * @param {function} [config.onConnect=noop] - function called when wallet selected did
19
- */
20
- constructor({ pathTransformer, tokenStorage, authenticator, onConnect }) {
21
- super();
22
- this.authenticator = authenticator;
23
- this.tokenStorage = tokenStorage;
24
- this.tokenStorage.on("create", (data) => this.emit("created", data));
25
- this.tokenStorage.on("destroy", (token) => this.emit("deleted", { token }));
26
- this.tokenStorage.on("update", async (data) => {
27
- if (!data) return;
28
- const payload = await this.tokenStorage.read(data.token);
29
- this.emit("updated", (0, lodash_omit.default)(payload, require_protocol.PROTECTED_KEYS));
30
- });
31
- if (typeof pathTransformer === "function") this.pathTransformer = pathTransformer;
32
- else this.pathTransformer = (v) => v;
33
- if (typeof onConnect === "function") this.onConnect = onConnect;
34
- else this.onConnect = () => {};
35
- }
36
- };
37
- var base_default = BaseHandler;
38
-
39
- //#endregion
40
- exports.default = base_default;
@@ -1,32 +0,0 @@
1
- import { EventEmitter } from "node:events";
2
-
3
- //#region src/handlers/base.d.ts
4
- declare class BaseHandler extends EventEmitter {
5
- authenticator: any;
6
- tokenStorage: any;
7
- pathTransformer: (v: string) => string;
8
- onConnect: (...args: any[]) => any;
9
- /**
10
- * Creates an instance of DID Auth Handlers.
11
- *
12
- * @class
13
- * @param {object} config
14
- * @param {function} config.pathTransformer - function to transform path when generate action;
15
- * @param {object} config.tokenStorage - function to generate action token
16
- * @param {object} config.authenticator - Authenticator instance that can to jwt sign/verify
17
- * @param {function} [config.onConnect=noop] - function called when wallet selected did
18
- */
19
- constructor({
20
- pathTransformer,
21
- tokenStorage,
22
- authenticator,
23
- onConnect
24
- }: {
25
- pathTransformer?: (v: string) => string;
26
- tokenStorage: any;
27
- authenticator: any;
28
- onConnect?: (...args: any[]) => any;
29
- });
30
- }
31
- //#endregion
32
- export { BaseHandler as default };