@explorins/pers-sdk-react-native 1.5.30 → 1.5.31

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.
@@ -25,8 +25,7 @@ export const PersSDKProvider = ({ children, config }) => {
25
25
  try {
26
26
  // Create HTTP client
27
27
  const httpClient = new ReactNativeHttpClient();
28
- // Ensure DPoP is enabled by default for all platforms
29
- const dpopConfig = config.dpop || {};
28
+ const dpopConfig = config.dpop ?? {};
30
29
  const isDpopEnabled = dpopConfig.enabled ?? true;
31
30
  // Prepare DPoP settings for Auth Provider
32
31
  const dpopSettings = {
@@ -1 +1 @@
1
- {"version":3,"file":"react-native-auth-provider.d.ts","sourceRoot":"","sources":["../../src/providers/react-native-auth-provider.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,mBAAmB,EAAW,QAAQ,EAA4B,MAAM,0BAA0B,CAAC;AAG5G,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAK7D;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2BAA2B;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,0CAA0C;IAC1C,aAAa,CAAC,EAAE,YAAY,CAAC;IAC7B,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,oCAAoC;IACpC,IAAI,CAAC,EAAE;QACL,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,cAAc,CAAC,EAAE,OAAO,0BAA0B,EAAE,kBAAkB,CAAC;KACxE,CAAC;CACH;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,EAClB,MAAM,GAAE,qBAA0B,GACjC,mBAAmB,CAiCrB"}
1
+ {"version":3,"file":"react-native-auth-provider.d.ts","sourceRoot":"","sources":["../../src/providers/react-native-auth-provider.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,mBAAmB,EAAW,QAAQ,EAA4B,MAAM,0BAA0B,CAAC;AAG5G,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAK7D;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2BAA2B;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,0CAA0C;IAC1C,aAAa,CAAC,EAAE,YAAY,CAAC;IAC7B,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,oCAAoC;IACpC,IAAI,CAAC,EAAE;QACL,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,cAAc,CAAC,EAAE,OAAO,0BAA0B,EAAE,kBAAkB,CAAC;KACxE,CAAC;CACH;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,EAClB,MAAM,GAAE,qBAA0B,GACjC,mBAAmB,CAsCrB"}
@@ -35,6 +35,10 @@ export function createReactNativeAuthProvider(projectKey, config = {}) {
35
35
  enabled: dpop.enabled ?? true,
36
36
  cryptoProvider: dpop.cryptoProvider
37
37
  } : undefined;
38
+ // DEBUG LOGGING
39
+ if (debug) {
40
+ console.log('[ReactNativeAuthProvider] Creating provider with DPoP config:', JSON.stringify(dpopConfig));
41
+ }
38
42
  // Return DefaultAuthProvider configured with platform-appropriate storage
39
43
  return new DefaultAuthProvider({
40
44
  authType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explorins/pers-sdk-react-native",
3
- "version": "1.5.30",
3
+ "version": "1.5.31",
4
4
  "description": "React Native SDK for PERS Platform - Tourism Loyalty System with Blockchain Transaction Signing and WebAuthn Authentication",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -88,10 +88,10 @@ export const PersSDKProvider: React.FC<{
88
88
  // Create HTTP client
89
89
  const httpClient = new ReactNativeHttpClient();
90
90
 
91
- // Ensure DPoP is enabled by default for all platforms
92
- const dpopConfig = config.dpop || {};
91
+ const dpopConfig = config.dpop ?? {};
92
+
93
93
  const isDpopEnabled = dpopConfig.enabled ?? true;
94
-
94
+
95
95
  // Prepare DPoP settings for Auth Provider
96
96
  const dpopSettings = {
97
97
  enabled: isDpopEnabled,
@@ -73,6 +73,11 @@ export function createReactNativeAuthProvider(
73
73
  enabled: dpop.enabled ?? true,
74
74
  cryptoProvider: dpop.cryptoProvider
75
75
  } : undefined;
76
+
77
+ // DEBUG LOGGING
78
+ if (debug) {
79
+ console.log('[ReactNativeAuthProvider] Creating provider with DPoP config:', JSON.stringify(dpopConfig));
80
+ }
76
81
 
77
82
  // Return DefaultAuthProvider configured with platform-appropriate storage
78
83
  return new DefaultAuthProvider({