I am pretty sure its impossible for the /verify endpoint @ supabase to set the token in LocalStorage for a different Host (where my react app sits). So whats the preferred way to let the user change his initial password (nobody knows) which he got on my inviteUserByEmail call ?
logemann
01/10/2022, 3:01 AM
replying to myself: Finally got it. The access_token is part of the 303 redirect from the /verify endpoint and is appended with "#" to the redirect_url
logemann
01/10/2022, 3:02 AM
So my invite flow now could be easily handled because when the user cllcks the invite, i will get his access_token in my react app. Just need to parse the URL. Never seen the # after the path though...
logemann
01/10/2022, 3:46 AM
After all: no need to even parse the URL fragment manually... supabase-js is doing it for us!