I see the docs says to install `supertokens-web-js`, but why might I use the `auth-react` over `web-...
l
I see the docs says to install
supertokens-web-js
, but why might I use the
auth-react
over
web-js
when using react.js? Or perhaps I need/can use both?
n
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)
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
2 Views