send additional headers
is there a way to pass additional headers? Doing it like this throws an error and seems to completely override headers:
//client
await authClient.forgetPassword({
email: value.email,
redirectTo: window.location.origin + "/reset-password",
fetchOptions: {
headers: {
"new-header": "new-value",
},
},
});
//server
export const auth = betterAuth({
emailAndPassword: {
enabled: true,
sendResetPassword: async (data, request) => {
console.log("headers", request.headers)
},
},