I am trying to create a websocket server & I need to authenticate the clients. I can authenticate them in rest apis , how can i do it using Socket.io with supertokens..
r
rp_st
10/10/2022, 7:09 AM
Hey! You can make a JWT using the Session.cretateJWT function and use that as a way of auth for web socket.
d
darkphoenix2704
10/10/2022, 7:15 AM
I currently use session Verification for other modules. Do i need to modify others if i use jwt?
r
rp_st
10/10/2022, 7:17 AM
no. You can use JWT just for websocket connection and that can be independent of rest API session verification
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).