Commit 9737dbe2 authored by Max Alekseenko's avatar Max Alekseenko

add expiration time for token

parent 08dfd8c8
......@@ -28,6 +28,7 @@ function getMessageToSign(address: string, nonce: string, isLogin?: boolean, ref
`Chain ID: ${ config.chain.id }`,
`Nonce: ${ nonce }`,
`Issued At: ${ new Date().toISOString() }`,
`Expiration Time: ${ new Date(Date.now() + 365 * 24 * 60 * 60 * 1000).toISOString() }`,
].join('\n');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment