Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
Wait for libs before signing data (#1918)
Browse files Browse the repository at this point in the history
  • Loading branch information
sliptype committed Sep 13, 2022
1 parent 5efd985 commit 2b1cc7f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2475,6 +2475,7 @@ export const audiusBackend = ({
}

async function signData() {
await waitForLibsInit()
const unixTs = Math.round(new Date().getTime() / 1000) // current unix timestamp (sec)
const data = `Click sign to authenticate with identity service: ${unixTs}`
const signature = await audiusLibs.Account.web3Manager.sign(
Expand Down

0 comments on commit 2b1cc7f

Please sign in to comment.