def validateToken(self, token):
self.auth_error = "Invalid token"
try:
def validateToken(self, token):
self.auth_error = "Invalid token"
try:
data = cPickle.loads(token['data'])
expires = data["expires"]
if (time.time() < expires):
data = cPickle.loads(token['data'])
expires = data["expires"]
if (time.time() < expires):