Post
Topic
Board Announcements (Altcoins)
Re: [ANN][AIRDROP] 💦💦 HYDRO 💦💦 The Public Ledger for Financial Services
by
HydroAndy
on 08/02/2018, 23:02:07 UTC
I'm trying to figure out how/when an authentication attempt ever expires? If I authenticate once, what prevents me from always being authenticated

In our smart contract we implemented a block timeout. This forces any specific address to authenticate once per day.
Are you doing that on chain? How do you track when a day has passed from a block? Or do you do it in the API level

In solidity it is very easy to track this on the blockchain. We simply have a variable in authentication requests that stores the time of the request + 1 day. If the current block is higher than this then the request is invalid.