@openfort/react 0.2.6 → 0.2.7
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/build/index.es.js +5 -5
- package/build/version.d.ts +1 -1
- package/package.json +2 -2
package/build/index.es.js
CHANGED
|
@@ -5643,7 +5643,7 @@ const FitText = ({ children, maxFontSize = 100, minFontSize = 70, justifyContent
|
|
|
5643
5643
|
};
|
|
5644
5644
|
FitText.displayName = 'FitText';
|
|
5645
5645
|
|
|
5646
|
-
const OPENFORT_VERSION = '0.2.
|
|
5646
|
+
const OPENFORT_VERSION = '0.2.7';
|
|
5647
5647
|
|
|
5648
5648
|
const Portal = (props) => {
|
|
5649
5649
|
props = {
|
|
@@ -17414,18 +17414,18 @@ function useConnectWithSiwe() {
|
|
|
17414
17414
|
}
|
|
17415
17415
|
let nonce;
|
|
17416
17416
|
if (link) {
|
|
17417
|
-
const resp = await client.auth.
|
|
17417
|
+
const resp = await client.auth.initLinkSiwe({ address });
|
|
17418
17418
|
nonce = resp.nonce;
|
|
17419
17419
|
}
|
|
17420
17420
|
else {
|
|
17421
|
-
const resp = await client.auth.
|
|
17421
|
+
const resp = await client.auth.initSiwe({ address });
|
|
17422
17422
|
nonce = resp.nonce;
|
|
17423
17423
|
}
|
|
17424
17424
|
const SIWEMessage = createSIWEMessage(address, nonce, chainId);
|
|
17425
17425
|
const signature = await signMessageAsync({ message: SIWEMessage });
|
|
17426
17426
|
if (link) {
|
|
17427
17427
|
logger.log('Linking wallet to user');
|
|
17428
|
-
await client.auth.
|
|
17428
|
+
await client.auth.linkWithSiwe({
|
|
17429
17429
|
signature,
|
|
17430
17430
|
message: SIWEMessage,
|
|
17431
17431
|
connectorType,
|
|
@@ -17436,7 +17436,7 @@ function useConnectWithSiwe() {
|
|
|
17436
17436
|
}
|
|
17437
17437
|
else {
|
|
17438
17438
|
logger.log('Authenticating with SIWE');
|
|
17439
|
-
await client.auth.
|
|
17439
|
+
await client.auth.loginWithSiwe({
|
|
17440
17440
|
signature,
|
|
17441
17441
|
message: SIWEMessage,
|
|
17442
17442
|
connectorType,
|
package/build/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const OPENFORT_VERSION = "0.2.
|
|
1
|
+
export declare const OPENFORT_VERSION = "0.2.7";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfort/react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"author": "Openfort (https://www.openfort.io)",
|
|
5
5
|
"license": "BSD-2-Clause license",
|
|
6
6
|
"description": "The easiest way to integrate Openfort to your project.",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"react"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@openfort/openfort-js": "^1.
|
|
35
|
+
"@openfort/openfort-js": "^1.1.3",
|
|
36
36
|
"axios": "^1.7.7",
|
|
37
37
|
"buffer": "^6.0.3",
|
|
38
38
|
"detect-browser": "^5.3.0",
|