@shack No, your page will start over from scratch, or goto your redirectTo page. Unless it is just signIn with email/password without confirm, then it will return data and you continue on.
s
shack
07/19/2022, 6:53 PM
wait so i shouldn't expect the code afterwards to ever be run?
g
garyaustin
07/19/2022, 6:53 PM
It will run, but is useless except to check for error.
s
shack
07/19/2022, 6:54 PM
I see. So how would I best go about collecting the token for a cookie on return to the app? I'm using NextJS (+ Refine, if that helps)
g
garyaustin
07/19/2022, 6:57 PM
I don't use next.js/react. There are some examples in guide page and there is a newer repository with auth helpers than includes next.js stuff https://github.com/supabase-community/auth-helpers
Usually you have processing on onAuthStateChange handler to monitor the session being set up by client code.