WalletConnect / web3modal

A single Web3 provider solution for all Wallets
https://web3modal.com
Apache License 2.0
4.69k stars 1.3k forks source link

[bug] SIWE Issued At is undefined #2258

Open chris13524 opened 2 weeks ago

chris13524 commented 2 weeks ago

Link to minimal reproducible example

https://lab.web3modal.com/library/wagmi-all/

Summary

Login with email

image

List of related npm package versions

latest

linear[bot] commented 2 weeks ago

APKT-381 [bug] SIWE Issued At is undefined

wgcorrea commented 5 days ago

I believe it's not a bug, and just the documentation is not covering all the getMessageParams possible arguments. Checking the source code, I can see that you can pass iat, which will work fine. E.g.:

    const getMessageParams = async () => ({
        domain: window.location.host,
        uri: window.location.origin,
        chains: [1],
        statement: 'Please sign with your account',
        iat: new Date().toISOString(),
    });

Tested with version 4.2.2