Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
chore(auth): clarify server vs client side
Browse files Browse the repository at this point in the history
  • Loading branch information
gregfromstl committed May 4, 2024
1 parent 3f270ab commit 042391e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/connect/auth/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,16 @@ const auth = createAuth({
client,
});

// 1. generate a login payload
// 1. generate a login payload on the server
const loginPayload = await auth.generatePayload({ address: "0x123..." });

// 2. sign the login payload
// 2. sign the login payload on the client
const signature = await auth.signPayload({
payload: loginPayload,
account: userAccount,
});

// 3. verify the login payload and signature that the client sends back later
// 3. verify the login payload and signature on the server
const verifiedPayload = await auth.verifyPayload({
payload: loginPayload,
signature,
Expand Down

0 comments on commit 042391e

Please sign in to comment.