Hi guys, first of all thank you for your great work! I wanted to ask what is the best approach to implement supertokens in Ionic. My current approach is to extract the JWT token in the FE and validate it in the BE. Is this the right way, or is there a better way?
r
rp_st
04/17/2022, 12:57 PM
Hey @User
rp_st
04/17/2022, 12:58 PM
If you can use the verifySession function in the backend via our SDK, that’s a better approach than using JWTs.
rp_st
04/17/2022, 12:59 PM
Try to not enable JWT and that way the sessions is more secure as you prevent attacks like token theft via XSS.
b
beagle0561
04/17/2022, 1:05 PM
ok then I will change that, thank you very much! 🙂
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).