@jwt_refresh_token_required
def post(self):
    current_user = get_jwt_identity()
    if current_user:
        access_token = create_access_token(identity=current_user)
        return {'access_token': access_token}
    abort(401)
    return {'message': 'invalid refresh token'}
@jwt_refresh_token_required
def post(self):
    current_user = get_jwt_identity()
    if current_user:
        access_token = create_access_token(identity=current_user)
        return {'access_token': access_token}
    abort(401)
    return {'message': 'invalid refresh token'}