mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-20 20:26:55 -05:00
fix: encode callbackURL in delete-user verification email (#8007)
(cherry picked from commit a2f6fbce5a)
This commit is contained in:
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(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user