def identity(payload): userid = payload['identity'] return User.find_by_id(userid)
def getUser(): userid = get_jwt_identity() return User.find_by_id(userid)