Skip to content

Commit 6f9df66

Browse files
committed
comment added
1 parent 6d0010f commit 6f9df66

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/util/jwt_utils.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ function authenticate_jwt_token(req) {
4949
throw new Error('Missing authorization header');
5050
}
5151
const decoded = authorize_jwt_token(token);
52+
// Same role 'metrics-auth' is used in operator RPC call,
53+
// if needs to change update operator RPC call first
5254
if (decoded.role !== "metrics-auth") {
5355
throw new Error("Role based authorization failed");
5456
}

0 commit comments

Comments
 (0)