@explorins/pers-signer 1.0.5 → 1.0.8
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 +3 -1
package/dist/browser.cjs.js
CHANGED
|
@@ -252,7 +252,8 @@ const SIGNER_CONFIG = {
|
|
|
252
252
|
* Default relying party name for WebAuthn operations
|
|
253
253
|
* This appears in the browser's authentication prompts
|
|
254
254
|
*/
|
|
255
|
-
DEFAULT_RELYING_PARTY_NAME: 'PERS Signer'
|
|
255
|
+
DEFAULT_RELYING_PARTY_NAME: 'PERS Signer',
|
|
256
|
+
DEFAULT_RELYING_PARTY_ID: 'signer.pers.ninja'};
|
|
256
257
|
|
|
257
258
|
/**
|
|
258
259
|
* Get PERS API base URL with staging option
|
|
@@ -2252,9 +2253,9 @@ class DfnsBrowserWebAuthnProvider {
|
|
|
2252
2253
|
async function getBrowserWebAuthnProvider() {
|
|
2253
2254
|
const config = {
|
|
2254
2255
|
relyingParty: {
|
|
2255
|
-
id: typeof window !== 'undefined' ? window.location.hostname :
|
|
2256
|
-
name:
|
|
2257
|
-
origin: typeof window !== 'undefined' ? window.location.origin :
|
|
2256
|
+
id: typeof window !== 'undefined' ? window.location.hostname : SIGNER_CONFIG.DEFAULT_RELYING_PARTY_ID,
|
|
2257
|
+
name: SIGNER_CONFIG.DEFAULT_RELYING_PARTY_NAME,
|
|
2258
|
+
origin: typeof window !== 'undefined' ? window.location.origin : SIGNER_CONFIG.DEFAULT_RELYING_PARTY_ID,
|
|
2258
2259
|
}
|
|
2259
2260
|
};
|
|
2260
2261
|
return new DfnsBrowserWebAuthnProvider(config);
|