when using react.js?
Or perhaps I need/can use both?
n
nkshah2
03/22/2023, 5:06 AM
Hi @leandergan
So the web-js SDK is a plain javascript SDK that provides all the functionality of SuperTokens in the form of functions you can call.
The auth-react SDK uses the web-js SDK internally and provides a pre built UI for the auth forms (among other things such as routing, wrappers to protect components etc)
nkshah2
03/22/2023, 5:07 AM
If you want to use your own UI without any of the additional functionalities (such as the session wrapper) from the react SDK you should use the web-js SDK.
And if you want to use our pre built components and routing logic without having to build the UI yourself, you should use the auth-react SDK