@explorins/pers-signer 1.0.6 → 1.0.9
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/browser.cjs.js +5 -4
- package/dist/browser.cjs.js.map +1 -1
- package/dist/browser.d.ts +1 -6
- package/dist/browser.esm.js +5 -4
- package/dist/browser.esm.js.map +1 -1
- package/dist/index.cjs.js +7 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -6
- package/dist/index.esm.js +7 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/react-native.cjs.js +7 -6
- package/dist/react-native.cjs.js.map +1 -1
- package/dist/react-native.d.ts +1 -6
- package/dist/react-native.esm.js +7 -6
- package/dist/react-native.esm.js.map +1 -1
- package/package.json +2 -1
package/dist/react-native.cjs.js
CHANGED
|
@@ -253,7 +253,8 @@ const SIGNER_CONFIG = {
|
|
|
253
253
|
* Default relying party name for WebAuthn operations
|
|
254
254
|
* This appears in the browser's authentication prompts
|
|
255
255
|
*/
|
|
256
|
-
DEFAULT_RELYING_PARTY_NAME: 'PERS Signer'
|
|
256
|
+
DEFAULT_RELYING_PARTY_NAME: 'PERS Signer',
|
|
257
|
+
DEFAULT_RELYING_PARTY_ID: 'signer.pers.ninja'};
|
|
257
258
|
|
|
258
259
|
/**
|
|
259
260
|
* Get PERS API base URL with staging option
|
|
@@ -2272,8 +2273,8 @@ class DfnsReactNativeWebAuthnProvider {
|
|
|
2272
2273
|
async function getReactNativeWebAuthnProvider() {
|
|
2273
2274
|
const config = {
|
|
2274
2275
|
relyingParty: {
|
|
2275
|
-
id:
|
|
2276
|
-
name:
|
|
2276
|
+
id: SIGNER_CONFIG.DEFAULT_RELYING_PARTY_ID,
|
|
2277
|
+
name: SIGNER_CONFIG.DEFAULT_RELYING_PARTY_NAME,
|
|
2277
2278
|
}
|
|
2278
2279
|
};
|
|
2279
2280
|
return new DfnsReactNativeWebAuthnProvider(config);
|
|
@@ -11839,9 +11840,9 @@ class DfnsBrowserWebAuthnProvider {
|
|
|
11839
11840
|
async function getBrowserWebAuthnProvider() {
|
|
11840
11841
|
const config = {
|
|
11841
11842
|
relyingParty: {
|
|
11842
|
-
id: typeof window !== 'undefined' ? window.location.hostname :
|
|
11843
|
-
name:
|
|
11844
|
-
origin: typeof window !== 'undefined' ? window.location.origin :
|
|
11843
|
+
id: typeof window !== 'undefined' ? window.location.hostname : SIGNER_CONFIG.DEFAULT_RELYING_PARTY_ID,
|
|
11844
|
+
name: SIGNER_CONFIG.DEFAULT_RELYING_PARTY_NAME,
|
|
11845
|
+
origin: typeof window !== 'undefined' ? window.location.origin : SIGNER_CONFIG.DEFAULT_RELYING_PARTY_ID,
|
|
11845
11846
|
}
|
|
11846
11847
|
};
|
|
11847
11848
|
return new DfnsBrowserWebAuthnProvider(config);
|