Commit 8280aff1 authored by Guillermo Sanz López's avatar Guillermo Sanz López
Browse files

change refresh token required

parent 5594c384
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ def login():
    return jsonify(access_token=access_token, refresh_token=refresh_token)

@access_routes.route('/refresh', methods=["POST"])
@jwt_refresh_token_required
@jwt_required
def refresh():
    current_user = get_jwt_identity()
    new_access_token = create_access_token(identity=current_user)