bytesbay / web3-token

Web3 Token is a new way to authenticate users in a hybrid dApps using signed messages. Implementation of EIP-4361.
380 stars 50 forks source link

Time always 1days #44

Closed rharkor closed 2 years ago

rharkor commented 2 years ago

My code look like this :

const localToken = await web3Token.sign(
  (msg) => signer.signMessage(msg, account),
  {
    statement: rawMessage,
    expire_in: "1m",
  }
);

I try many things for the expire_in params but every time the message saiys that the token expire in 1 day

bytesbay commented 2 years ago

There's a typo in docs, fixed already You need to use expires_at instead of expire_at