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