@cedarjs/auth-dbauth-web 7.0.0-canary.3058 → 7.0.0-canary.3063
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/webAuthn.d.ts +1 -1
- package/dist/webAuthn.d.ts.map +1 -1
- package/dist/webAuthn.js +4 -2
- package/package.json +4 -4
package/dist/webAuthn.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export default class WebAuthnClient {
|
|
|
2
2
|
authApiUrl: string;
|
|
3
3
|
private getAuthApiUrl;
|
|
4
4
|
setAuthApiUrl(authApiUrl?: string): void;
|
|
5
|
-
isSupported(): Promise<
|
|
5
|
+
isSupported(): Promise<boolean>;
|
|
6
6
|
isEnabled(): boolean;
|
|
7
7
|
private authenticationOptions;
|
|
8
8
|
authenticate(): Promise<boolean>;
|
package/dist/webAuthn.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webAuthn.d.ts","sourceRoot":"","sources":["../src/webAuthn.ts"],"names":[],"mappings":"AAqCA,MAAM,CAAC,OAAO,OAAO,cAAc;IACjC,UAAU,SAAK;IAEf,OAAO,CAAC,aAAa;IAIrB,aAAa,CAAC,UAAU,CAAC,EAAE,MAAM;IAM3B,WAAW;IAKjB,SAAS;YAQK,qBAAqB;IAmC7B,YAAY;
|
|
1
|
+
{"version":3,"file":"webAuthn.d.ts","sourceRoot":"","sources":["../src/webAuthn.ts"],"names":[],"mappings":"AAqCA,MAAM,CAAC,OAAO,OAAO,cAAc;IACjC,UAAU,SAAK;IAEf,OAAO,CAAC,aAAa;IAIrB,aAAa,CAAC,UAAU,CAAC,EAAE,MAAM;IAM3B,WAAW;IAKjB,SAAS;YAQK,qBAAqB;IAmC7B,YAAY;IA4ClB,OAAO,CAAC,mBAAmB;IA+BrB,QAAQ;CAwCf;AAED,MAAM,MAAM,kBAAkB,GAAG,OAAO,cAAc,CAAA"}
|
package/dist/webAuthn.js
CHANGED
|
@@ -84,7 +84,9 @@ class WebAuthnClient {
|
|
|
84
84
|
const authOptions = await this.authenticationOptions();
|
|
85
85
|
const { startAuthentication } = await import("@simplewebauthn/browser");
|
|
86
86
|
try {
|
|
87
|
-
const browserResponse = await startAuthentication(
|
|
87
|
+
const browserResponse = await startAuthentication({
|
|
88
|
+
optionsJSON: authOptions
|
|
89
|
+
});
|
|
88
90
|
const xhr = new XMLHttpRequest();
|
|
89
91
|
xhr.withCredentials = true;
|
|
90
92
|
xhr.open("POST", this.getAuthApiUrl(), false);
|
|
@@ -145,7 +147,7 @@ class WebAuthnClient {
|
|
|
145
147
|
let regResponse;
|
|
146
148
|
const { startRegistration } = await import("@simplewebauthn/browser");
|
|
147
149
|
try {
|
|
148
|
-
regResponse = await startRegistration(options);
|
|
150
|
+
regResponse = await startRegistration({ optionsJSON: options });
|
|
149
151
|
} catch (e) {
|
|
150
152
|
if (e.name === "InvalidStateError") {
|
|
151
153
|
throw new WebAuthnAlreadyRegisteredError();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/auth-dbauth-web",
|
|
3
|
-
"version": "7.0.0-canary.
|
|
3
|
+
"version": "7.0.0-canary.3063",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"test:watch": "vitest watch"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@cedarjs/auth": "7.0.0-canary.
|
|
43
|
-
"@simplewebauthn/browser": "
|
|
42
|
+
"@cedarjs/auth": "7.0.0-canary.3063",
|
|
43
|
+
"@simplewebauthn/browser": "13.3.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@cedarjs/framework-tools": "7.0.0-canary.
|
|
46
|
+
"@cedarjs/framework-tools": "7.0.0-canary.3063",
|
|
47
47
|
"@types/react": "^19.2.0",
|
|
48
48
|
"concurrently": "9.2.4",
|
|
49
49
|
"publint": "0.3.24",
|