Skip to content

Commit

Permalink
chore: change example dapp configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
dawidsowardx committed Sep 18, 2024
1 parent 98509d6 commit 42b044f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/simple-dapp/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ const gatewayApi = GatewayApiClient.initialize(
dAppToolkit.gatewayApi.clientConfig,
)

dAppToolkit.walletApi.provideChallengeGenerator(async () => {
await new Promise((resolve) => setTimeout(resolve, 1000))
return generateRolaChallenge()
})
dAppToolkit.walletApi.provideChallengeGenerator(async () => generateRolaChallenge())

dAppToolkit.walletApi.setRequestData(DataRequestBuilder.persona().withProof())
dAppToolkit.walletApi.setRequestData(
DataRequestBuilder.persona().withProof(),
DataRequestBuilder.accounts().atLeast(1),
)

gatewayConfig.innerHTML = `
[Gateway]
Expand Down

0 comments on commit 42b044f

Please sign in to comment.