def check_token(self, token):
        t = DataToken.get(token)
        return t and datetime.now() <= (t.date + self.expiration_delay)
Check that the token is valid
dataset/ETHPy150Open Net-ng/kansha/kansha/authentication/database/forms.py/TokenGenerator.check_token