How do I intercept event events and authenticate them in a unified manner? #2052
Replies: 3 comments 2 replies
-
Inidividual events do not need to be authenticated, because the Socket.IO connection is long lasting. You only need to authenticate in the connect event handler. Save any authentication state that you need there so that you can access it on subsequent events. |
Beta Was this translation helpful? Give feedback.
-
I want to implement unified interception authentication and write the authentication for each event. It is likely that this is too many. Before obtaining a cookie, if it does not expire, the cookie is ignored |
Beta Was this translation helpful? Give feedback.
-
What if I want to refresh the cookie every time I communicate? Is there a uniform way |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How do I intercept event events and authenticate them in a unified manner? For example, flask processes before_request of http. Which socketio has a similar function
Beta Was this translation helpful? Give feedback.
All reactions