Hey, we are using tanstack router + start to build...
# ask-a-descoper
t
Hey, we are using tanstack router + start to build our website (loaders, SSR, etc). I'm having really hard time integrating descope in a way that doesn't break our SSR completely and makes our app slow to load and hard to work with. Would appreciate any assistance
m
@Asaf Shen can you help here ?\
a
hi @Tomer Ziv I'm not sure what are you doing in the SSR side, but I understand it requires the user to be authenticated, right? there are few approaches, for the integration part I would recommend: • pass
sessionTokenViaCookie
and
refreshTokenViaCookie
props • do not wait for session in router • then the
DS
/
DSR
will be available in SSR, you can use them to validate user etc let me know if you have any other questions around this
k
@Tomer Ziv ^