oauth0-js-lib 2.2.4 → 2.2.6
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 +1 -1
- package/dist/index.es.js +576 -568
- package/dist/index.umd.js +176 -176
- package/dist/main.d.ts +1 -1
- package/dist/modal.d.ts +4 -3
- package/package.json +33 -33
package/dist/main.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface AuthSession {
|
|
|
9
9
|
sessionId: string;
|
|
10
10
|
validUntil: string | null;
|
|
11
11
|
}
|
|
12
|
-
export declare function showQrLogin(sessionTime?: AuthSessionTime): void
|
|
12
|
+
export declare function showQrLogin(sessionTime?: AuthSessionTime): Promise<void>;
|
|
13
13
|
export declare function closeQrLogin(): void;
|
|
14
14
|
export declare function createAuthSession(sessionTime?: AuthSessionTime): Promise<AuthSession>;
|
|
15
15
|
export declare function createAuthEvent(successCallback?: Function, errorCallback?: Function): EventSource;
|
package/dist/modal.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { AuthSessionTime } from './main.js';
|
|
2
|
-
export type ErrorCallback = (error: any) => void;
|
|
3
2
|
export declare class QRModal {
|
|
4
3
|
private overlay;
|
|
5
4
|
private isOpen;
|
|
6
|
-
private errorCallback;
|
|
7
5
|
private authEvent;
|
|
8
6
|
private contentContainer;
|
|
9
7
|
private loader;
|
|
@@ -13,6 +11,9 @@ export declare class QRModal {
|
|
|
13
11
|
private errorContainer;
|
|
14
12
|
private timerContainer;
|
|
15
13
|
private timerInterval;
|
|
14
|
+
private resolvePromise;
|
|
15
|
+
private rejectPromise;
|
|
16
|
+
private currentPromise;
|
|
16
17
|
private createElement;
|
|
17
18
|
private createModal;
|
|
18
19
|
private generateQR;
|
|
@@ -22,7 +23,7 @@ export declare class QRModal {
|
|
|
22
23
|
private renderErrorState;
|
|
23
24
|
private renderExpiredState;
|
|
24
25
|
private requestData;
|
|
25
|
-
show(requestData: AuthSessionTime
|
|
26
|
+
show(requestData: AuthSessionTime): Promise<void>;
|
|
26
27
|
private startAuthFlow;
|
|
27
28
|
close(): void;
|
|
28
29
|
}
|
package/package.json
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "oauth0-js-lib",
|
|
3
|
-
"version": "2.2.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"main": "./dist/index.umd.js",
|
|
6
|
-
"module": "./dist/index.es.js",
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist",
|
|
10
|
-
"README.md"
|
|
11
|
-
],
|
|
12
|
-
"scripts": {
|
|
13
|
-
"build": "vite build"
|
|
14
|
-
},
|
|
15
|
-
"keywords": [],
|
|
16
|
-
"author": "Egor Korepin",
|
|
17
|
-
"license": "ISC",
|
|
18
|
-
"description": "Simplify integration with the Oauth0 service",
|
|
19
|
-
"devDependencies": {
|
|
20
|
-
"@types/node": "^24.9.1",
|
|
21
|
-
"@types/qrcode": "^1.5.6",
|
|
22
|
-
"typescript": "^5.9.3",
|
|
23
|
-
"vite": "^6.4.1",
|
|
24
|
-
"vite-plugin-dts": "^4.5.4"
|
|
25
|
-
},
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"-": "^0.0.1",
|
|
28
|
-
"@vitest/coverage-v8": "^4.0.4",
|
|
29
|
-
"axios": "^1.13.1",
|
|
30
|
-
"qrcode": "^1.5.4",
|
|
31
|
-
"vitest": "^4.0.4"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "oauth0-js-lib",
|
|
3
|
+
"version": "2.2.6",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.umd.js",
|
|
6
|
+
"module": "./dist/index.es.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"README.md"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "vite build"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [],
|
|
16
|
+
"author": "Egor Korepin",
|
|
17
|
+
"license": "ISC",
|
|
18
|
+
"description": "Simplify integration with the Oauth0 service",
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@types/node": "^24.9.1",
|
|
21
|
+
"@types/qrcode": "^1.5.6",
|
|
22
|
+
"typescript": "^5.9.3",
|
|
23
|
+
"vite": "^6.4.1",
|
|
24
|
+
"vite-plugin-dts": "^4.5.4"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"-": "^0.0.1",
|
|
28
|
+
"@vitest/coverage-v8": "^4.0.4",
|
|
29
|
+
"axios": "^1.13.1",
|
|
30
|
+
"qrcode": "^1.5.4",
|
|
31
|
+
"vitest": "^4.0.4"
|
|
32
|
+
}
|
|
33
|
+
}
|