Custom SSR on Example - redirects to login #72
-
I'm a newbie, so I might be doing something wrong but have the 'example' running, did a NPM install, added .env.local and all auths are working correctly except for the custom routing option (ssr-custom-routing.js) it redirects to login endpoint and comes up with a 404. The login endpoint exists. Any suggestions on what might be wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This behavior is expected. The example is a little confusing, but if you check out the source, it's meant to demonstrate custom routing based on auth state. In this case, it's redirecting to the login page when the user's email isn't verified. |
Beta Was this translation helpful? Give feedback.
This behavior is expected. The example is a little confusing, but if you check out the source, it's meant to demonstrate custom routing based on auth state. In this case, it's redirecting to the login page when the user's email isn't verified.