@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.
package/dist/index.cjs.js CHANGED
@@ -73,8 +73,8 @@ const SIGNER_CONFIG = {
73
73
  * PERS Platform API URLs
74
74
  */
75
75
  DEFAULT_PERS_API_URL: 'https://api.pers.ninja/v2',
76
- // STAGING_PERS_API_URL: 'https://dev.api.pers.ninja/v2',
77
- STAGING_PERS_API_URL: 'https://explorins-loyalty.ngrok.io',
76
+ STAGING_PERS_API_URL: 'https://dev.api.pers.ninja/v2',
77
+ // STAGING_PERS_API_URL: 'https://explorins-loyalty.ngrok.io',
78
78
  /**
79
79
  * Default relying party name for WebAuthn operations
80
80
  * This appears in the browser's authentication prompts
@@ -102,9 +102,10 @@ function detectStagingEnvironmentFromToken(token) {
102
102
  if (payload.iss === SIGNER_CONFIG.STAGING_PERS_API_URL
103
103
  || SIGNER_CONFIG.STAGING_PERS_API_URL.includes(payload.iss)
104
104
  || SIGNER_CONFIG.STAGING_SIGNER_API_URL.includes(payload.iss)
105
- // Temporary additional checks for known staging issuers
106
- // || 'https://signer-api-staging.pers.ninja'.includes(payload.iss)
107
- || 'https://dev.api.pers.ninja/v2'.includes(payload.iss)) {
105
+ // Temporary additional checks for known staging issuers
106
+ // || 'https://signer-api-staging.pers.ninja'.includes(payload.iss)
107
+ // || 'https://dev.api.pers.ninja/v2'.includes(payload.iss)
108
+ ) {
108
109
  return true;
109
110
  /* } else if (payload.iss === SIGNER_CONFIG.DEFAULT_PERS_API_URL ||
110
111
  SIGNER_CONFIG.DEFAULT_PERS_API_URL.includes(payload.iss)) {
@@ -2126,7 +2127,7 @@ class PersSignerSDK {
2126
2127
  * @throws {Error} If required configuration is missing
2127
2128
  */
2128
2129
  constructor(config) {
2129
- console.log('DEBUG: v1.2.0');
2130
+ // console.log('DEBUG: v1.2.0')
2130
2131
  this.config = config;
2131
2132
  setConfigProvider(new WebConfigProvider({
2132
2133
  apiUrl: config.apiUrl || SIGNER_CONFIG.DEFAULT_SIGNER_API_URL,