Skip to content

Commit aea08dc

Browse files
committed
fixed SIWE details in README
1 parent 84af0fa commit aea08dc

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

packages/messenger-widget/README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ Follow the below given steps :-
212212
REACT_APP_WALLET_CONNECT_PROJECT_ID: process.env.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID,
213213
REACT_APP_CHAIN_ID: process.env.NEXT_PUBLIC_CHAIN_ID,
214214
REACT_APP_MAINNET_PROVIDER_RPC: process.env.NEXT_PUBLIC_MAINNET_PROVIDER_RPC,
215-
REACT_APP_PUBLIC_VAPID_KEY: process.env.NEXT_PUBLIC_PUBLIC_VAPID_KEY
215+
REACT_APP_PUBLIC_VAPID_KEY: process.env.NEXT_PUBLIC_PUBLIC_VAPID_KEY,
216216
REACT_APP_NONCE: process.env.NEXT_PUBLIC_NONCE,
217217
},
218218
};
@@ -284,7 +284,7 @@ yarn run dev
284284
1. Create a new vite app with typescript.
285285
2. Follow all the steps similar to React.js integration.
286286
3. Don't create .env file instead use the below configuration.
287-
4. Add the following properties in vite.config.ts file
287+
4. Add the following properties in vite.config.ts file.
288288
289289
#### For Sepolia testnet :
290290
@@ -428,10 +428,15 @@ Example :
428428
```js
429429
const props: DM3Configuration = {
430430
...
431-
siwe: "https://myimage.png",
431+
siwe: {
432+
address: "0xe7861D923e1B055bB25CD49569d20903c44692c5",
433+
message: "my msg",
434+
signature: '0xc9c8df80009a302559642d67adeea12d6e3f2ecbd7702986596b4012a5f5956e70c2a2c658f7c02e9255499049ea518fdf714cadc121b0319aee80f7ae28b0181b',
435+
secret: "my-super-secret0"
436+
},
432437
}
433438
```
434-
This is a optional property of type obejct. Using this one can signin into DM3 with the SIWE (Sign In With Ethereum). All the properties of the object are mandatory.
439+
This is a optional property of type object. Using this one can signin into DM3 with the SIWE (Sign In With Ethereum). All the properties of the object are mandatory.
435440

436441

437442
#### Address :
@@ -446,8 +451,8 @@ IMPORTANT The embedding app is responsible for security, recovery, etc.
446451

447452
```js
448453
Example :
449-
signInImage: undefined
450-
signInImage: {
454+
siwe: undefined
455+
siwe: {
451456
address: "0xe7861D923e1B055bB25CD49569d20903c44692c5",
452457
message: "my msg",
453458
signature: '0xc9c8df80009a302559642d67adeea12d6e3f2ecbd7702986596b4012a5f5956e70c2a2c658f7c02e9255499049ea518fdf714cadc121b0319aee80f7ae28b0181b',

0 commit comments

Comments
 (0)