From 0c8addd7325fde45550f271d2034735ccee96ac6 Mon Sep 17 00:00:00 2001 From: Andrii Ublinskykh Date: Sun, 15 Jun 2025 13:56:02 +0300 Subject: [PATCH 1/2] updated comments for createEIP712AuthMessageSigner function --- docs/quick_start/connect_to_the_clearnode.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/quick_start/connect_to_the_clearnode.md b/docs/quick_start/connect_to_the_clearnode.md index 4a410ff..016e2c1 100644 --- a/docs/quick_start/connect_to_the_clearnode.md +++ b/docs/quick_start/connect_to_the_clearnode.md @@ -319,6 +319,7 @@ ws.onmessage = async (event) => { }, { // Domain for EIP-712 signing + // Must be equal to your app_name from authRequestMsg name: 'Your Domain', }, ) @@ -406,6 +407,7 @@ ws.onmessage = async (event) => { }, { // Domain for EIP-712 signing + // Must be equal to your app_name from authRequestMsg name: 'Your Domain', }, ) From 61f25be91bc9eff1212a2b81441833721ea8e79d Mon Sep 17 00:00:00 2001 From: Andrii Ublinskykh Date: Sun, 15 Jun 2025 13:59:30 +0300 Subject: [PATCH 2/2] added small comments for createAuthRequestMessage function --- docs/quick_start/connect_to_the_clearnode.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/quick_start/connect_to_the_clearnode.md b/docs/quick_start/connect_to_the_clearnode.md index 016e2c1..0521088 100644 --- a/docs/quick_start/connect_to_the_clearnode.md +++ b/docs/quick_start/connect_to_the_clearnode.md @@ -284,8 +284,8 @@ const authRequestMsg = await createAuthRequestMessage({ participant: '0xYourSignerAddress', app_name: 'Your Domain', expire: Math.floor(Date.now() / 1000) + 3600, // 1 hour expiration - scope: 'console', - application: '0xYourApplicationAddress', + scope: 'console', // optional + application: '0xYourApplicationAddress', // optional allowances: [], }); @@ -375,8 +375,8 @@ ws.onopen = async () => { participant: '0xYourSignerAddress', app_name: 'Your Domain', expire: Math.floor(Date.now() / 1000) + 3600, // 1 hour expiration - scope: 'console', - application: '0xYourApplicationAddress', + scope: 'console', // optional + application: '0xYourApplicationAddress', // optional allowances: [], }); ws.send(authRequestMsg);