Hello, i would like to know if it is possible to use the selfhosted react App from the Github in combination with another frontend app with a different framework? I'm currently using VueJS for Frontend and have not worked with react before. Could I host the Loginpage as an react app seperately and direct to it from my vueJs frontend? If yes, what do I have to return to my frontend after the authentication? Is the session stored in cookies or something like that?
r
rp_st
03/29/2022, 8:46 AM
This is possible.
Your webserver would serve the react app for the /auth/* route, and for other routes, it would server the vue app.
The react app would use supertokens-auth-react SDK. The Vue app would use supertokens-website SDK (which is also used inside supertokens-auth-react).
Upon login, the session tokens will be stored in the cookies and attached to the API domain + the website domain. So you don't need to do anything special to communicate between the react and vue app.
j
JadBlackstone
03/29/2022, 8:49 AM
Oh that's great! Thank you for your quick response 😃
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).