hi i have to do routing for my react app.. and im ...
# support-questions-legacy
s
hi i have to do routing for my react app.. and im using custom ui.. so is there any tip to do this perfectly using supertokens.. should i check with session and route or is there any way.. any link or example project is appreciated. thanks btw
r
hey @sharukhrahman have a look at this please: https://github.com/supertokens/supertokens-web-js/tree/master/examples/vuejs/with-thirdpartyemailpassword This is an exmaple app with vue js + custom UI
s
hey is this it.. u check for session on each page??
r
you can use the Session.getSession() function for that
s
oh ok thanks man.. i saw that and my app has many pages.. thats why i asked.
r
ah fair. You can make some sort of a wrapper component and wrap your app pages in that component..
s
yeah.. Session.getSession() doesnt exists i think
r
how are you importing?
Please see the example app - it has all of the flows 🙂
s
thank you got it