Following supabase admin call won't gerente a correct URL with updated URL configuration. It seems to be stucked with old configuration.
I have both the redirect URL and the default URL set to a different value than the one that the sdk call returns (old url)(image). I have no idea where it takes the old url from. It
console.log('[employeeWelcomeEmail] recovery redirectTo (requested):', redirectTo, {
employeeEmail: data.employee.email,
FORMS_BASE_URL_set: Boolean(process.env.FORMS_BASE_URL),
})
const { data: linkData, error: linkError } = await supabase.auth.admin.generateLink({
type: 'recovery',
email: data.employee.email,
options: { redirectTo },
})
console.log('[employeeWelcomeEmail] linkData:', JSON.stringify(linkData, null, 2))
console.log('[employeeWelcomeEmail] linkError:', JSON.stringify(linkError, null, 2))
OUTPUT
app[web.1]: [employeeWelcomeEmail] recovery redirectTo (requested): https://dsa-forms-test.vercel.app/employee/reset-password {
app[web.1]: employeeEmail: 'adolfosrs+080526005@gmail.com',
app[web.1]: VANDRE_FORMS_BASE_URL_set: true
app[web.1]: }
app[web.1]: [employeeWelcomeEmail] linkData: {
app[web.1]: "properties": {
app[web.1]: "action_link": "https://ikuybxrtszhoubrr.supabase.co/auth/v1/verify?token=d18dd17ea47962bc650a8bc288a73380a451716c128c8cfc03&type=recovery&redirect_to=https://dsa-admin-test.vercel.app",
app[web.1]: "email_otp": "820511",
app[web.1]: "hashed_token": "d18dd17ea47962bc650a8bc288a73380a451716c128c8cfc03",
app[web.1]: "redirect_to": "https://dsa-admin-test.vercel.app",
app[web.1]: "verification_type": "recovery"
app[web.1]: },
The user is experiencing an issue where updating the redirect URL in the Auth URL Configuration does not take effect. Despite setting the redirect URL and default URL to new values, the SDK call still returns the old URL. The user is unsure where the old URL is being sourced from.