Hey,
I would like to validate the user's token during SSR. When the token is valid the client is considered authenticated and no more token validation is necessary while navigating on the client side.
I don't know how to run the isTokenValid function only on during SSR and skip it during client-side navigation. Both of:
onRequestrouteLoader$
is triggered on every client-side navigation which is not desired.
🙏 Any ideas?