@explorins/pers-signer 1.0.26 → 1.0.27

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.
@@ -142,8 +142,8 @@ const SIGNER_CONFIG = {
142
142
  * PERS Platform API URLs
143
143
  */
144
144
  DEFAULT_PERS_API_URL: 'https://api.pers.ninja/v2',
145
- // STAGING_PERS_API_URL: 'https://dev.api.pers.ninja/v2',
146
- STAGING_PERS_API_URL: 'https://explorins-loyalty.ngrok.io',
145
+ STAGING_PERS_API_URL: 'https://dev.api.pers.ninja/v2',
146
+ // STAGING_PERS_API_URL: 'https://explorins-loyalty.ngrok.io',
147
147
  /**
148
148
  * Default relying party name for WebAuthn operations
149
149
  * This appears in the browser's authentication prompts
@@ -171,9 +171,10 @@ function detectStagingEnvironmentFromToken(token) {
171
171
  if (payload.iss === SIGNER_CONFIG.STAGING_PERS_API_URL
172
172
  || SIGNER_CONFIG.STAGING_PERS_API_URL.includes(payload.iss)
173
173
  || SIGNER_CONFIG.STAGING_SIGNER_API_URL.includes(payload.iss)
174
- // Temporary additional checks for known staging issuers
175
- // || 'https://signer-api-staging.pers.ninja'.includes(payload.iss)
176
- || 'https://dev.api.pers.ninja/v2'.includes(payload.iss)) {
174
+ // Temporary additional checks for known staging issuers
175
+ // || 'https://signer-api-staging.pers.ninja'.includes(payload.iss)
176
+ // || 'https://dev.api.pers.ninja/v2'.includes(payload.iss)
177
+ ) {
177
178
  return true;
178
179
  /* } else if (payload.iss === SIGNER_CONFIG.DEFAULT_PERS_API_URL ||
179
180
  SIGNER_CONFIG.DEFAULT_PERS_API_URL.includes(payload.iss)) {
@@ -1756,7 +1757,7 @@ class PersSignerSDK {
1756
1757
  * @throws {Error} If required configuration is missing
1757
1758
  */
1758
1759
  constructor(config) {
1759
- console.log('DEBUG: v1.2.0');
1760
+ // console.log('DEBUG: v1.2.0')
1760
1761
  this.config = config;
1761
1762
  setConfigProvider(new WebConfigProvider({
1762
1763
  apiUrl: config.apiUrl || SIGNER_CONFIG.DEFAULT_SIGNER_API_URL,