We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ff06618 + 58f598d commit b1c5a55Copy full SHA for b1c5a55
src/main/java/edu/byu/cs/controller/WebSocketController.java
@@ -32,7 +32,7 @@ public static void onMessage(WsMessageContext ctx) {
32
String netId;
33
ctx.enableAutomaticPings(20, TimeUnit.SECONDS);
34
try {
35
- netId = JwtUtils.validateToken(message);
+ netId = JwtUtils.validateToken(ctx.cookie("token"));
36
} catch (Exception e) {
37
LOGGER.warn("Exception thrown while validating token: ", e);
38
sendError(session, "Invalid token");
0 commit comments