@pelican-identity/auth-core 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/README.md +0 -13
- package/dist/constants.d.ts +1 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +1 -1
- package/dist/constants.js.map +1 -1
- package/dist/engine/engine.d.ts +12 -5
- package/dist/engine/engine.d.ts.map +1 -1
- package/dist/engine/engine.js +123 -76
- package/dist/engine/engine.js.map +1 -1
- package/dist/index.d.mts +17 -6
- package/dist/index.d.ts +198 -8
- package/dist/index.js +613 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +222 -124
- package/dist/index.mjs.map +1 -1
- package/dist/utilities/transport.d.ts +4 -0
- package/dist/utilities/transport.d.ts.map +1 -1
- package/dist/utilities/transport.js +65 -11
- package/dist/utilities/transport.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/types.d.ts +0 -102
- package/dist/types/types.d.ts.map +0 -1
- package/dist/types/types.js +0 -2
- package/dist/types/types.js.map +0 -1
- package/dist/utilities/crypto.d.ts +0 -18
- package/dist/utilities/crypto.d.ts.map +0 -1
- package/dist/utilities/crypto.js +0 -37
- package/dist/utilities/crypto.js.map +0 -1
- package/dist/utilities/stateMachine.d.ts +0 -9
- package/dist/utilities/stateMachine.d.ts.map +0 -1
- package/dist/utilities/stateMachine.js +0 -18
- package/dist/utilities/stateMachine.js.map +0 -1
- package/dist/utilities/storage.d.ts +0 -26
- package/dist/utilities/storage.d.ts.map +0 -1
- package/dist/utilities/storage.js +0 -92
- package/dist/utilities/storage.js.map +0 -1
package/README.md
CHANGED
|
@@ -13,11 +13,6 @@ The Vanilla SDK provides a framework-agnostic way to integrate Pelican authentic
|
|
|
13
13
|
Ideal for projects without a build step. Includes the UI and logic in a single file.
|
|
14
14
|
|
|
15
15
|
```html
|
|
16
|
-
<link
|
|
17
|
-
rel="stylesheet"
|
|
18
|
-
href="https://cdn.jsdelivr.net/npm/@pelican-identity/vanilla@1.0.2/dist/pelican.css"
|
|
19
|
-
/>
|
|
20
|
-
|
|
21
16
|
<script src="https://cdn.jsdelivr.net/npm/@pelican-identity/vanilla@1.0.2/dist/index.min.js"></script>
|
|
22
17
|
|
|
23
18
|
<div id="pelican-auth-root"></div>
|
|
@@ -44,7 +39,6 @@ npm install @pelican-identity/vanilla
|
|
|
44
39
|
|
|
45
40
|
```typescript
|
|
46
41
|
import { createPelicanAuth } from "@pelican-identity/vanilla";
|
|
47
|
-
import "@pelican-identity/vanilla/dist/pelican.css";
|
|
48
42
|
|
|
49
43
|
const cleanup = createPelicanAuth("container-id", {
|
|
50
44
|
publicKey: "...",
|
|
@@ -164,11 +158,4 @@ interface IdentityResult {
|
|
|
164
158
|
**Cause:** The engine might be in `initializing` state or the domain isn't whitelisted.
|
|
165
159
|
**Fix:** Check your Pelican Dashboard and ensure your current domain (including port if applicable) is added to the project whitelist.
|
|
166
160
|
|
|
167
|
-
### Styles not applying
|
|
168
|
-
|
|
169
|
-
**Cause:** The CSS file is missing.
|
|
170
|
-
**Fix:** If using NPM, ensure you import `@pelican-identity/vanilla/dist/pelican.css`. If using the CDN `.min.js` version with `injectStyle: true`, this should be automatic.
|
|
171
|
-
|
|
172
|
-
---
|
|
173
|
-
|
|
174
161
|
**Would you like me to help you create a "Getting Started" guide specifically for the Pelican Dashboard setup to complement this SDK documentation?**
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const BASEURL = "
|
|
1
|
+
export declare const BASEURL = "http://192.168.1.9:8080";
|
|
2
2
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,4BAA4B,CAAC"}
|
package/dist/constants.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const BASEURL = "
|
|
1
|
+
export const BASEURL = "http://192.168.1.9:8080";
|
|
2
2
|
//# sourceMappingURL=constants.js.map
|
package/dist/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,yBAAyB,CAAC"}
|
package/dist/engine/engine.d.ts
CHANGED
|
@@ -7,23 +7,30 @@ export declare class PelicanAuthentication {
|
|
|
7
7
|
private sessionId;
|
|
8
8
|
private sessionKey;
|
|
9
9
|
private visibilityHandler?;
|
|
10
|
+
private backupCheckTimeout?;
|
|
11
|
+
private useWebSocket;
|
|
10
12
|
private listeners;
|
|
11
13
|
private readonly config;
|
|
12
14
|
constructor(config: PelicanAuthConfig);
|
|
13
15
|
on<K extends keyof PelicanAuthEventMap>(event: K, cb: Listener<PelicanAuthEventMap[K]>): () => boolean;
|
|
14
16
|
start(): Promise<void>;
|
|
15
17
|
stop(): void;
|
|
16
|
-
|
|
17
|
-
private
|
|
18
|
-
private
|
|
18
|
+
destroy(): void;
|
|
19
|
+
private shouldUseWebSocket;
|
|
20
|
+
private startWebSocketFlow;
|
|
21
|
+
private handleWebSocketMessage;
|
|
19
22
|
private handleAuthSuccess;
|
|
20
|
-
private
|
|
23
|
+
private startDeepLinkFlow;
|
|
24
|
+
private clearBackupCheck;
|
|
25
|
+
private checkSession;
|
|
26
|
+
private emitQRCode;
|
|
27
|
+
private emitDeepLink;
|
|
21
28
|
private attachVisibilityRecovery;
|
|
22
29
|
private detachVisibilityRecovery;
|
|
30
|
+
private fetchRelayUrl;
|
|
23
31
|
private terminate;
|
|
24
32
|
private restartIfContinuous;
|
|
25
33
|
private resetSession;
|
|
26
|
-
destroy(): void;
|
|
27
34
|
private emit;
|
|
28
35
|
private fail;
|
|
29
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../src/engine/engine.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EAGpB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../src/engine/engine.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EAGpB,MAAM,gBAAgB,CAAC;AAWxB,KAAK,QAAQ,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,KAAK,IAAI,CAAC;AAQxC,qBAAa,qBAAqB;IAChC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuB;IAC9C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAsB;IAEnD,OAAO,CAAC,SAAS,CAAC,CAAY;IAC9B,OAAO,CAAC,SAAS,CAAM;IACvB,OAAO,CAAC,UAAU,CAAuB;IAEzC,OAAO,CAAC,iBAAiB,CAAC,CAAa;IACvC,OAAO,CAAC,kBAAkB,CAAC,CAAS;IACpC,OAAO,CAAC,YAAY,CAAQ;IAE5B,OAAO,CAAC,SAAS,CAEV;IAEP,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA8B;gBAEzC,MAAM,EAAE,iBAAiB;IAiBrC,EAAE,CAAC,CAAC,SAAS,MAAM,mBAAmB,EACpC,KAAK,EAAE,CAAC,EACR,EAAE,EAAE,QAAQ,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC;IAOhC,KAAK;IAyBX,IAAI;IAIJ,OAAO;IAUP,OAAO,CAAC,kBAAkB;YAYZ,kBAAkB;IAuBhC,OAAO,CAAC,sBAAsB;IA4B9B,OAAO,CAAC,iBAAiB;YAqCX,iBAAiB;IAgB/B,OAAO,CAAC,gBAAgB;YAOV,YAAY;YAkDZ,UAAU;YAmBV,YAAY;IAgB1B,OAAO,CAAC,wBAAwB;IAchC,OAAO,CAAC,wBAAwB;YASlB,aAAa;IAe3B,OAAO,CAAC,SAAS;IA6BjB,OAAO,CAAC,mBAAmB;IAa3B,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,IAAI;IAOZ,OAAO,CAAC,IAAI;CAIb"}
|
package/dist/engine/engine.js
CHANGED
|
@@ -10,6 +10,7 @@ export class PelicanAuthentication {
|
|
|
10
10
|
this.stateMachine = new StateMachine();
|
|
11
11
|
this.sessionId = "";
|
|
12
12
|
this.sessionKey = null;
|
|
13
|
+
this.useWebSocket = true;
|
|
13
14
|
this.listeners = {};
|
|
14
15
|
if (!config.publicKey)
|
|
15
16
|
throw new Error("Missing publicKey");
|
|
@@ -38,23 +39,15 @@ export class PelicanAuthentication {
|
|
|
38
39
|
clearAuthSession();
|
|
39
40
|
this.stateMachine.transition("initializing");
|
|
40
41
|
try {
|
|
41
|
-
const relay = await this.fetchRelayUrl();
|
|
42
42
|
this.sessionKey = this.crypto.generateSymmetricKey();
|
|
43
43
|
this.sessionId = crypto.randomUUID() + crypto.randomUUID();
|
|
44
|
-
this.
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
this.stateMachine.transition("awaiting-pair");
|
|
52
|
-
},
|
|
53
|
-
onMessage: (msg) => this.handleMessage(msg),
|
|
54
|
-
onError: () => this.fail(new Error("WebSocket connection failed")),
|
|
55
|
-
});
|
|
56
|
-
this.transport.connect(relay);
|
|
57
|
-
await this.emitEntryPoint();
|
|
44
|
+
this.useWebSocket = this.shouldUseWebSocket();
|
|
45
|
+
if (this.useWebSocket) {
|
|
46
|
+
await this.startWebSocketFlow();
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
await this.startDeepLinkFlow();
|
|
50
|
+
}
|
|
58
51
|
}
|
|
59
52
|
catch (err) {
|
|
60
53
|
this.fail(err instanceof Error ? err : new Error("Start failed"));
|
|
@@ -63,41 +56,38 @@ export class PelicanAuthentication {
|
|
|
63
56
|
stop() {
|
|
64
57
|
this.terminate(false);
|
|
65
58
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
const json = await res.json();
|
|
74
|
-
return json.relay_url;
|
|
59
|
+
destroy() {
|
|
60
|
+
this.detachVisibilityRecovery();
|
|
61
|
+
this.clearBackupCheck();
|
|
62
|
+
this.transport?.close();
|
|
63
|
+
this.transport = undefined;
|
|
64
|
+
this.listeners = {};
|
|
75
65
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
66
|
+
shouldUseWebSocket() {
|
|
67
|
+
return (this.config.forceQRCode ||
|
|
68
|
+
!/Android|iPhone|iPad/i.test(navigator.userAgent));
|
|
69
|
+
}
|
|
70
|
+
async startWebSocketFlow() {
|
|
71
|
+
const relay = await this.fetchRelayUrl();
|
|
72
|
+
this.transport = new Transport({
|
|
73
|
+
onOpen: () => {
|
|
74
|
+
this.transport.send({
|
|
75
|
+
type: "register",
|
|
76
|
+
sessionID: this.sessionId,
|
|
77
|
+
...this.config,
|
|
78
|
+
});
|
|
79
|
+
this.stateMachine.transition("awaiting-pair");
|
|
80
|
+
},
|
|
81
|
+
onMessage: (msg) => this.handleWebSocketMessage(msg),
|
|
82
|
+
onError: (err) => {
|
|
83
|
+
console.error("WebSocket error:", err);
|
|
84
|
+
this.fail(new Error("WebSocket connection failed"));
|
|
85
|
+
},
|
|
86
|
+
});
|
|
87
|
+
this.transport.connect(relay);
|
|
88
|
+
await this.emitQRCode();
|
|
99
89
|
}
|
|
100
|
-
|
|
90
|
+
handleWebSocketMessage(msg) {
|
|
101
91
|
switch (msg.type) {
|
|
102
92
|
case "paired":
|
|
103
93
|
this.stateMachine.transition("paired");
|
|
@@ -112,7 +102,7 @@ export class PelicanAuthentication {
|
|
|
112
102
|
this.handleAuthSuccess(msg);
|
|
113
103
|
return;
|
|
114
104
|
case "phone-terminated":
|
|
115
|
-
this.fail(new Error("
|
|
105
|
+
this.fail(new Error("Authentication cancelled on device"));
|
|
116
106
|
this.restartIfContinuous();
|
|
117
107
|
return;
|
|
118
108
|
case "confirmed":
|
|
@@ -150,38 +140,84 @@ export class PelicanAuthentication {
|
|
|
150
140
|
this.restartIfContinuous();
|
|
151
141
|
}
|
|
152
142
|
}
|
|
153
|
-
async
|
|
143
|
+
async startDeepLinkFlow() {
|
|
144
|
+
await this.fetchRelayUrl();
|
|
145
|
+
if (this.sessionKey) {
|
|
146
|
+
storeAuthSession(this.sessionId, this.sessionKey, 10 * 60000);
|
|
147
|
+
}
|
|
148
|
+
await this.emitDeepLink();
|
|
149
|
+
this.stateMachine.transition("awaiting-pair");
|
|
150
|
+
}
|
|
151
|
+
clearBackupCheck() {
|
|
152
|
+
if (this.backupCheckTimeout) {
|
|
153
|
+
clearTimeout(this.backupCheckTimeout);
|
|
154
|
+
this.backupCheckTimeout = undefined;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
async checkSession() {
|
|
158
|
+
const cached = getAuthSession();
|
|
159
|
+
if (!cached)
|
|
160
|
+
return;
|
|
161
|
+
this.stateMachine.transition("awaiting-auth");
|
|
154
162
|
try {
|
|
155
163
|
const res = await fetch(`${BASEURL}/session?session_id=${cached.sessionId}`);
|
|
156
164
|
if (!res.ok)
|
|
157
|
-
|
|
165
|
+
return;
|
|
158
166
|
const data = await res.json();
|
|
159
167
|
const decrypted = this.crypto.decryptSymmetric({
|
|
160
168
|
encrypted: { cipher: data.cipher, nonce: data.nonce },
|
|
161
169
|
keyString: cached.sessionKey,
|
|
162
170
|
});
|
|
163
171
|
if (!decrypted) {
|
|
164
|
-
|
|
165
|
-
this.restartIfContinuous();
|
|
172
|
+
console.warn("Failed to decrypt session");
|
|
166
173
|
return;
|
|
167
174
|
}
|
|
168
175
|
const result = JSON.parse(decrypted);
|
|
169
|
-
this.
|
|
176
|
+
this.clearBackupCheck();
|
|
170
177
|
clearAuthSession();
|
|
178
|
+
this.emit("success", result);
|
|
179
|
+
this.stateMachine.transition("authenticated");
|
|
180
|
+
if (this.config.continuousMode) {
|
|
181
|
+
setTimeout(() => {
|
|
182
|
+
this.stateMachine.transition("confirmed");
|
|
183
|
+
this.start();
|
|
184
|
+
}, 1500);
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
this.stateMachine.transition("confirmed");
|
|
188
|
+
}
|
|
171
189
|
}
|
|
172
|
-
catch {
|
|
173
|
-
|
|
174
|
-
this.restartIfContinuous();
|
|
190
|
+
catch (err) {
|
|
191
|
+
console.debug("Session check failed:", err);
|
|
175
192
|
}
|
|
176
193
|
}
|
|
194
|
+
async emitQRCode() {
|
|
195
|
+
const payload = {
|
|
196
|
+
sessionID: this.sessionId,
|
|
197
|
+
sessionKey: this.sessionKey,
|
|
198
|
+
publicKey: this.config.publicKey,
|
|
199
|
+
authType: this.config.authType,
|
|
200
|
+
projectId: this.config.projectId,
|
|
201
|
+
url: window.location.href,
|
|
202
|
+
};
|
|
203
|
+
const qr = await QRCode.toDataURL(JSON.stringify(payload), {
|
|
204
|
+
type: "image/png",
|
|
205
|
+
scale: 3,
|
|
206
|
+
color: { light: "#ffffff", dark: "#424242ff" },
|
|
207
|
+
});
|
|
208
|
+
this.emit("qr", qr);
|
|
209
|
+
}
|
|
210
|
+
async emitDeepLink() {
|
|
211
|
+
const deeplink = `pelicanvault://auth/deep-link?sessionID=${encodeURIComponent(this.sessionId)}&sessionKey=${encodeURIComponent(this.sessionKey)}&publicKey=${encodeURIComponent(this.config.publicKey)}&authType=${this.config.authType}&projectId=${encodeURIComponent(this.config.projectId)}&url=${encodeURIComponent(window.location.href)}`;
|
|
212
|
+
this.emit("deeplink", deeplink);
|
|
213
|
+
}
|
|
177
214
|
attachVisibilityRecovery() {
|
|
178
215
|
this.visibilityHandler = async () => {
|
|
179
216
|
if (document.visibilityState !== "visible")
|
|
180
217
|
return;
|
|
181
|
-
|
|
182
|
-
if (!cached)
|
|
218
|
+
if (this.useWebSocket)
|
|
183
219
|
return;
|
|
184
|
-
await this.
|
|
220
|
+
await this.checkSession();
|
|
185
221
|
};
|
|
186
222
|
document.addEventListener("visibilitychange", this.visibilityHandler);
|
|
187
223
|
}
|
|
@@ -191,17 +227,31 @@ export class PelicanAuthentication {
|
|
|
191
227
|
this.visibilityHandler = undefined;
|
|
192
228
|
}
|
|
193
229
|
}
|
|
230
|
+
async fetchRelayUrl() {
|
|
231
|
+
const { publicKey, projectId, authType } = this.config;
|
|
232
|
+
const res = await fetch(`${BASEURL}/relay?public_key=${publicKey}&auth_type=${authType}&project_id=${projectId}`);
|
|
233
|
+
if (!res.ok) {
|
|
234
|
+
const error = await res.text();
|
|
235
|
+
throw new Error(error);
|
|
236
|
+
}
|
|
237
|
+
const json = await res.json();
|
|
238
|
+
return json.relay_url;
|
|
239
|
+
}
|
|
194
240
|
terminate(success) {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
241
|
+
this.clearBackupCheck();
|
|
242
|
+
if (this.transport) {
|
|
243
|
+
if (!success) {
|
|
244
|
+
this.transport.send({
|
|
245
|
+
type: "client-terminated",
|
|
246
|
+
sessionID: this.sessionId,
|
|
247
|
+
projectId: this.config.projectId,
|
|
248
|
+
publicKey: this.config.publicKey,
|
|
249
|
+
authType: this.config.authType,
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
this.transport.close();
|
|
253
|
+
this.transport = undefined;
|
|
203
254
|
}
|
|
204
|
-
this.transport?.close();
|
|
205
255
|
clearAuthSession();
|
|
206
256
|
this.resetSession();
|
|
207
257
|
if (!this.config.continuousMode) {
|
|
@@ -210,10 +260,12 @@ export class PelicanAuthentication {
|
|
|
210
260
|
this.stateMachine.transition(success ? "confirmed" : "idle");
|
|
211
261
|
}
|
|
212
262
|
restartIfContinuous() {
|
|
213
|
-
this.stateMachine.transition("idle");
|
|
214
|
-
this.transport?.close();
|
|
215
263
|
if (!this.config.continuousMode)
|
|
216
264
|
return;
|
|
265
|
+
this.clearBackupCheck();
|
|
266
|
+
this.transport?.close();
|
|
267
|
+
this.transport = undefined;
|
|
268
|
+
this.stateMachine.transition("idle");
|
|
217
269
|
setTimeout(() => {
|
|
218
270
|
this.start();
|
|
219
271
|
}, 150);
|
|
@@ -222,11 +274,6 @@ export class PelicanAuthentication {
|
|
|
222
274
|
this.sessionId = "";
|
|
223
275
|
this.sessionKey = null;
|
|
224
276
|
}
|
|
225
|
-
destroy() {
|
|
226
|
-
this.detachVisibilityRecovery();
|
|
227
|
-
this.transport?.close();
|
|
228
|
-
this.listeners = {};
|
|
229
|
-
}
|
|
230
277
|
emit(event, payload) {
|
|
231
278
|
this.listeners[event]?.forEach((cb) => cb(payload));
|
|
232
279
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine.js","sourceRoot":"","sources":["../../src/engine/engine.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAChD,OAAO,MAAM,MAAM,QAAQ,CAAC;AAO5B,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,gBAAgB,
|
|
1
|
+
{"version":3,"file":"engine.js","sourceRoot":"","sources":["../../src/engine/engine.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAChD,OAAO,MAA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d.mts
CHANGED
|
@@ -108,23 +108,30 @@ declare class PelicanAuthentication {
|
|
|
108
108
|
private sessionId;
|
|
109
109
|
private sessionKey;
|
|
110
110
|
private visibilityHandler?;
|
|
111
|
+
private backupCheckTimeout?;
|
|
112
|
+
private useWebSocket;
|
|
111
113
|
private listeners;
|
|
112
114
|
private readonly config;
|
|
113
115
|
constructor(config: PelicanAuthConfig);
|
|
114
116
|
on<K extends keyof PelicanAuthEventMap>(event: K, cb: Listener<PelicanAuthEventMap[K]>): () => boolean;
|
|
115
117
|
start(): Promise<void>;
|
|
116
118
|
stop(): void;
|
|
117
|
-
|
|
118
|
-
private
|
|
119
|
-
private
|
|
119
|
+
destroy(): void;
|
|
120
|
+
private shouldUseWebSocket;
|
|
121
|
+
private startWebSocketFlow;
|
|
122
|
+
private handleWebSocketMessage;
|
|
120
123
|
private handleAuthSuccess;
|
|
121
|
-
private
|
|
124
|
+
private startDeepLinkFlow;
|
|
125
|
+
private clearBackupCheck;
|
|
126
|
+
private checkSession;
|
|
127
|
+
private emitQRCode;
|
|
128
|
+
private emitDeepLink;
|
|
122
129
|
private attachVisibilityRecovery;
|
|
123
130
|
private detachVisibilityRecovery;
|
|
131
|
+
private fetchRelayUrl;
|
|
124
132
|
private terminate;
|
|
125
133
|
private restartIfContinuous;
|
|
126
134
|
private resetSession;
|
|
127
|
-
destroy(): void;
|
|
128
135
|
private emit;
|
|
129
136
|
private fail;
|
|
130
137
|
}
|
|
@@ -166,11 +173,15 @@ declare class Transport {
|
|
|
166
173
|
private maxReconnectAttempts;
|
|
167
174
|
private isExplicitlyClosed;
|
|
168
175
|
private url?;
|
|
176
|
+
private reconnectTimeout?;
|
|
177
|
+
private isReconnecting;
|
|
169
178
|
constructor(handlers: TransportHandlers);
|
|
170
179
|
connect(url: string): void;
|
|
171
180
|
private attemptReconnect;
|
|
172
181
|
send(payload: ISocketMessage): void;
|
|
173
182
|
close(): void;
|
|
183
|
+
get readyState(): number | undefined;
|
|
184
|
+
get isOpen(): boolean;
|
|
174
185
|
}
|
|
175
186
|
|
|
176
187
|
interface AuthSession {
|
|
@@ -182,6 +193,6 @@ declare const getAuthSession: () => AuthSession | null;
|
|
|
182
193
|
declare const clearAuthSession: () => void;
|
|
183
194
|
declare const clearAllAuthData: () => void;
|
|
184
195
|
|
|
185
|
-
declare const BASEURL = "
|
|
196
|
+
declare const BASEURL = "http://192.168.1.9:8080";
|
|
186
197
|
|
|
187
198
|
export { type AuthSession, type AuthType, BASEURL, CryptoService, type IEmail, type IKycData, type IPhone, type ISocketMessage, type IUserData, type IdCardTypes, type IdentityResult, type PelicanAuthConfig, type PelicanAuthEventMap, type PelicanAuthState, PelicanAuthentication, type PelicanWebAuthProps, StateMachine, Transport, clearAllAuthData, clearAuthSession, getAuthSession, storeAuthSession };
|