@explorins/pers-signer 1.0.6 → 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.
@@ -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: 'pers.ninja',
2276
- name: 'PERS Blockchain Signer',
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 : 'pers.ninja',
11843
- name: 'PERS Blockchain Signer',
11844
- origin: typeof window !== 'undefined' ? window.location.origin : 'https://pers.ninja',
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);