Skip to content

Commit

Permalink
login message
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmasken committed Jun 5, 2024
1 parent 442cd9b commit 4bf4f28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/store/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,15 @@ export const useAuthStore = defineStore("auth", {
const account = accounts[0];

// The message you want to sign
const message = 'Hello, please sign this message.';
const message = 'Hello, Do you want to sign in to IC-PAY?';

// Hash the message (optional but recommended)
const messageHash = web3.utils.sha3(message);
// const messageHash = web3.utils.sha3(message);

// Sign the hashed message
const signature = await ethereum.request({
method: 'personal_sign',
params: [messageHash, account]
params: [message, account]
});

console.log('Signature:', signature);
Expand Down

0 comments on commit 4bf4f28

Please sign in to comment.