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