def identity(payload): user_id = payload['identity'] return User.find_by_id(user_id)
def identity(payload): userid = payload["identity"] return User.find_by_id(userid)