@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/browser.cjs.js +7 -6
- package/dist/browser.cjs.js.map +1 -1
- package/dist/browser.esm.js +7 -6
- 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.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.esm.js +7 -6
- package/dist/react-native.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/browser.cjs.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
175
|
-
|
|
176
|
-
|
|
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,
|