How can I use upgradeWebSocket with bearer jwt authentication? #2534
-
I protected my route group with the jwt middleware and I am using upgradeWebSocket. If i send a request to the websocket endpoint with a Authorization: Bearer header I get this error and my api crashes:
|
Beta Was this translation helpful? Give feedback.
Answered by
jonasfroeller
Aug 11, 2024
Replies: 1 comment 1 reply
-
I found out, that the jwtMiddleware doesn't seem to work with cookies and the cors middleware as well as .route crashed the websocket endpoint with the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#2535