After authentication in the /login page, I can't figure out how to route back to the previous page. I don't want to have to manually add a "referrer" query parameter in the redirectTo field, and I also want the ability to include any possible query params or anchors that existed in the previous page's URL. I can't use router.back() because apparently the redirection to the login page uses router.replace(), which doesn't write to browser history. Kinda stumped on this one!
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.