dauth-context-react 6.6.3 → 6.7.0
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/index.js +3 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +16 -29
- package/src/index.tsx +1 -4
- package/src/webauthn.ts +2 -2
package/dist/index.mjs
CHANGED
|
@@ -239,7 +239,7 @@ function bufferToBase64url(buffer) {
|
|
|
239
239
|
async function createPasskeyCredential(options) {
|
|
240
240
|
const publicKey = {
|
|
241
241
|
...options,
|
|
242
|
-
rp:
|
|
242
|
+
rp: options.rp,
|
|
243
243
|
challenge: base64urlToBuffer(options.challenge),
|
|
244
244
|
user: {
|
|
245
245
|
...options.user,
|
|
@@ -285,7 +285,7 @@ async function getPasskeyCredential(options) {
|
|
|
285
285
|
const publicKey = {
|
|
286
286
|
challenge: base64urlToBuffer(options.challenge),
|
|
287
287
|
timeout: options.timeout,
|
|
288
|
-
rpId:
|
|
288
|
+
rpId: options.rpId,
|
|
289
289
|
userVerification: options.userVerification || "preferred",
|
|
290
290
|
allowCredentials: (options.allowCredentials || []).map(
|
|
291
291
|
(c) => ({
|
|
@@ -2207,10 +2207,7 @@ var DauthProvider = (props) => {
|
|
|
2207
2207
|
}
|
|
2208
2208
|
};
|
|
2209
2209
|
document.addEventListener("visibilitychange", handleVisibilityChange);
|
|
2210
|
-
return () => document.removeEventListener(
|
|
2211
|
-
"visibilitychange",
|
|
2212
|
-
handleVisibilityChange
|
|
2213
|
-
);
|
|
2210
|
+
return () => document.removeEventListener("visibilitychange", handleVisibilityChange);
|
|
2214
2211
|
}, [ctx, dauthState.isAuthenticated, dauthState.isLoading]);
|
|
2215
2212
|
const loginWithRedirect = useCallback2(() => {
|
|
2216
2213
|
const base = `${getClientBasePath()}/${domainName}/${routes.signin}`;
|