Anyone know how I can route a user to a specific p...
# help
t
Anyone know how I can route a user to a specific page upon login? Using Supabase, and I can route to the homepage when they logout. But if I use the same login for logging in, in loads the routed page, without the user being logged in.
n
Hello @TJ! This thread has been automatically created from your message in #843999948717555735 a ``few seconds ago``. Pinging @User so that they see this as well! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ... menu) and select Leave Thread to unsubscribe from future updates. Want to change the title? Use the
/title
command! We have solved your problem? Click the button below to archive it.
t
If I remove /pricing though, it logs in just fine.
(I'm following Jon Meyers' awesome tutorial from Egghead.)
g
Normally you would use redirectTo option for 3rd party signs as the code gets reloaded when coming back from auth. https://supabase.com/docs/reference/javascript/auth-signin#sign-in-with-redirect
n
TJ (2022-05-01)
t
Hey Gary, and thank you!
Ahhh I see. Going to try that right now
So sorry to ask. But it is still not sending me to /pricing. Any idea what I'm doing wrong?
g
Needs the entire url. And then needs to be set up on server:
t
Ahh thanks. I'd tried adding the full URL but didn't add it to Auth/Settings. Doing that now.
It works! Thank you, Gary.