I'm implementing my own login and signup UI's on a NextJS project by following the steps in this blog post:
https://supertokens.com/blog/adding-social-login-to-your-website-with-supertokens
I've made a route on the frontend for the callback, but how should I handle redirects? For example, I try to access a secure page, get directed to login, login with google, directs me to the
redirect_uri
, that page handles the
/auth/signinup
, how should I properly handle sending my user back to the initial protected page?