Is there a known issue with redirectTo in the sign...
# off-topic
n
Is there a known issue with redirectTo in the signUp api ? I'm doing this:
Copy code
const { user, session, error } = await supabase.auth.signUp({
        email: email,
        password: password,
    }, {
        data: {
            phone: phone,
            name: name,
            company: company
        },

        redirectTo: config.BASE_URL + "/api/registration/activate"

    }
    );
and the URL in redirectTo is listed on the dashboard under
Additional Redirect URLs
No matter what the email that shows up always contains just the base URL in the redirect_to query param
s
There is a caveat to this, the url you have in the
Additional Redirect URL
must match exactly that which you are passing to the redirectTo parameter, as in include the entire string of the baseURL plus the
/api/registration/activate
n
It does
It's 1:1
s
I have this working in a app at the moment, I would suggest you
console.log(config.BASE_URL + "/api/registration/activate")
to make sure it is printing exactly what you have, somehow I feel there is an extra
/
in there that isn't noticable
n
are you using signUp or signIn?
i deleted everything from that setup page in supabase and re-entered and saved and now its working.
sorry to keep bothering you but any reason that now the redirect URL doensn't contains the accesstoken as a query param but rather behind a hashtag?
s
I'm not sure why this design decision was taken, but it has been mentioned before by others that it seems rather odd to implement it this way