def _get_user_from_token(jwt_token): if jwt_token: token = Token.find_by_token(jwt_token) if token is not None: return token.user