@openfort/react-native 0.1.3 → 0.1.4
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/provider.js +3 -4
- package/dist/index.js +2 -0
- package/dist/types/core/provider.d.ts +6 -2
- package/dist/types/index.d.ts +1 -1
- package/package.json +3 -3
package/dist/core/provider.js
CHANGED
|
@@ -7,7 +7,7 @@ import { EmbeddedWalletWebView, WebViewUtils } from '../native';
|
|
|
7
7
|
* Main provider component that wraps the entire application and provides
|
|
8
8
|
* Openfort SDK functionality through React context
|
|
9
9
|
*/
|
|
10
|
-
export const OpenfortProvider = ({ children, publishableKey, customAuth, supportedChains, walletConfig, overrides, }) => {
|
|
10
|
+
export const OpenfortProvider = ({ children, publishableKey, customAuth, supportedChains, walletConfig, overrides, thirdPartyAuth, }) => {
|
|
11
11
|
// Prevent multiple OpenfortProvider instances
|
|
12
12
|
const existingContext = React.useContext(OpenfortContext);
|
|
13
13
|
if (existingContext) {
|
|
@@ -24,9 +24,8 @@ export const OpenfortProvider = ({ children, publishableKey, customAuth, support
|
|
|
24
24
|
shieldEncryptionKey: 'shieldEncryptionKey' in walletConfig ? walletConfig.shieldEncryptionKey : undefined,
|
|
25
25
|
shieldDebug: walletConfig.debug,
|
|
26
26
|
}) : undefined,
|
|
27
|
-
overrides
|
|
28
|
-
|
|
29
|
-
},
|
|
27
|
+
overrides,
|
|
28
|
+
thirdPartyAuth,
|
|
30
29
|
});
|
|
31
30
|
setDefaultClient(newClient);
|
|
32
31
|
return newClient;
|
package/dist/index.js
CHANGED
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
* @author Openfort
|
|
9
9
|
* @version 0.1.0
|
|
10
10
|
*/
|
|
11
|
+
// Re-export commonly used types from @openfort/openfort-js
|
|
12
|
+
export { OpenfortError, RecoveryMethod, Openfort as OpenfortClient, OpenfortConfiguration, ShieldConfiguration, EmbeddedState, } from '@openfort/openfort-js';
|
|
11
13
|
// Re-export enums and values from @openfort/openfort-js
|
|
12
14
|
export { OAuthProvider, } from '@openfort/openfort-js';
|
|
13
15
|
// Re-export all types from the main types module
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { RecoveryMethod, SDKOverrides, AccountTypeEnum } from '@openfort/openfort-js';
|
|
2
|
+
import { RecoveryMethod, SDKOverrides, AccountTypeEnum, ThirdPartyAuthConfiguration } from '@openfort/openfort-js';
|
|
3
3
|
/**
|
|
4
4
|
* Custom auth configuration
|
|
5
5
|
*/
|
|
@@ -118,10 +118,14 @@ export interface OpenfortProviderProps {
|
|
|
118
118
|
* SDK overrides configuration for advanced customization
|
|
119
119
|
*/
|
|
120
120
|
overrides?: SDKOverrides;
|
|
121
|
+
/**
|
|
122
|
+
* Third party auth configuration for integrating with external auth providers
|
|
123
|
+
*/
|
|
124
|
+
thirdPartyAuth?: ThirdPartyAuthConfiguration;
|
|
121
125
|
}
|
|
122
126
|
/**
|
|
123
127
|
* Main provider component that wraps the entire application and provides
|
|
124
128
|
* Openfort SDK functionality through React context
|
|
125
129
|
*/
|
|
126
|
-
export declare const OpenfortProvider: ({ children, publishableKey, customAuth, supportedChains, walletConfig, overrides, }: OpenfortProviderProps) => React.JSX.Element;
|
|
130
|
+
export declare const OpenfortProvider: ({ children, publishableKey, customAuth, supportedChains, walletConfig, overrides, thirdPartyAuth, }: OpenfortProviderProps) => React.JSX.Element;
|
|
127
131
|
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @author Openfort
|
|
9
9
|
* @version 0.1.0
|
|
10
10
|
*/
|
|
11
|
-
export
|
|
11
|
+
export { AuthPlayerResponse, OpenfortError, RecoveryMethod, Openfort as OpenfortClient, Provider, OpenfortConfiguration, ShieldConfiguration, EmbeddedState, } from '@openfort/openfort-js';
|
|
12
12
|
export { OAuthProvider, } from '@openfort/openfort-js';
|
|
13
13
|
export * from './types';
|
|
14
14
|
export * from './hooks';
|
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.
|
|
4
|
+
"version": "0.1.4",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "React Native SDK for Openfort platform integration",
|
|
7
7
|
"scripts": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@openfort/openfort-js": "^0.10.
|
|
25
|
+
"@openfort/openfort-js": "^0.10.4",
|
|
26
26
|
"expo-apple-authentication": "*",
|
|
27
27
|
"expo-crypto": "*",
|
|
28
28
|
"expo-linking": "*",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@eslint/js": "^9.17.0",
|
|
38
|
-
"@openfort/openfort-js": "^0.10.
|
|
38
|
+
"@openfort/openfort-js": "^0.10.4",
|
|
39
39
|
"@types/react": "~18.3.12",
|
|
40
40
|
"@types/react-test-renderer": "^18.3.0",
|
|
41
41
|
"buffer": "^5.4.3",
|