@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.
- package/dist/core/client.js +1 -1
- package/dist/core/provider.js +3 -3
- package/package.json +1 -1
package/dist/core/client.js
CHANGED
|
@@ -84,7 +84,7 @@ let defaultClient = null;
|
|
|
84
84
|
*/
|
|
85
85
|
export function getDefaultClient(options) {
|
|
86
86
|
if (!defaultClient && options) {
|
|
87
|
-
defaultClient =
|
|
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.');
|
package/dist/core/provider.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState, useEffect, useCallback, useMemo } from 'react';
|
|
2
|
-
import {
|
|
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:
|
|
92
|
+
baseConfiguration: {
|
|
93
93
|
publishableKey: publishableKey,
|
|
94
|
-
}
|
|
94
|
+
},
|
|
95
95
|
shieldConfiguration: walletConfig ? new ShieldConfiguration({
|
|
96
96
|
shieldPublishableKey: walletConfig.shieldPublishableKey,
|
|
97
97
|
shieldDebug: walletConfig.debug,
|