fix: encode callbackURL in delete-user verification email (#8007)

(cherry picked from commit a2f6fbce5a)
This commit is contained in:
Paola Estefanía de Campos
2026-02-18 22:31:37 +08:00
committed by Alex Yang
parent c682ac8605
commit fab61af713
@@ -527,9 +527,9 @@ export const deleteUser = createAuthEndpoint(
});
const url = `${
ctx.context.baseURL
}/delete-user/callback?token=${token}&callbackURL=${
ctx.body.callbackURL || "/"
}`;
}/delete-user/callback?token=${token}&callbackURL=${encodeURIComponent(
ctx.body.callbackURL || "/",
)}`;
await ctx.context.runInBackgroundOrAwait(
ctx.context.options.user.deleteUser.sendDeleteAccountVerification(
{