@openfort/react-native 0.1.13 → 0.1.14

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.
@@ -84,7 +84,7 @@ let defaultClient = null;
84
84
  */
85
85
  export function getDefaultClient(options) {
86
86
  if (!defaultClient && options) {
87
- defaultClient = new OpenfortClient(options);
87
+ defaultClient = createOpenfortClient(options);
88
88
  }
89
89
  if (!defaultClient) {
90
90
  throw new Error('Openfort client not initialized. Make sure to wrap your app with OpenfortProvider.');
@@ -1,5 +1,5 @@
1
1
  import React, { useState, useEffect, useCallback, useMemo } from 'react';
2
- import { OpenfortConfiguration, ShieldConfiguration, EmbeddedState, } from '@openfort/openfort-js';
2
+ import { ShieldConfiguration, EmbeddedState, } from '@openfort/openfort-js';
3
3
  import { OpenfortContext } from './context';
4
4
  import { createOpenfortClient, setDefaultClient } from './client';
5
5
  import { EmbeddedWalletWebView, WebViewUtils } from '../native';
@@ -89,9 +89,9 @@ export const OpenfortProvider = ({ children, publishableKey, customAuth, support
89
89
  // Create or use provided client
90
90
  const client = useMemo(() => {
91
91
  const newClient = createOpenfortClient({
92
- baseConfiguration: new OpenfortConfiguration({
92
+ baseConfiguration: {
93
93
  publishableKey: publishableKey,
94
- }),
94
+ },
95
95
  shieldConfiguration: walletConfig ? new ShieldConfiguration({
96
96
  shieldPublishableKey: walletConfig.shieldPublishableKey,
97
97
  shieldDebug: walletConfig.debug,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openfort/react-native",
3
3
  "main": "dist/index.js",
4
- "version": "0.1.13",
4
+ "version": "0.1.14",
5
5
  "license": "MIT",
6
6
  "description": "React Native SDK for Openfort platform integration",
7
7
  "scripts": {