This commit is contained in:
2024-11-27 07:48:16 +05:00
parent 7389de4c76
commit 7fadcd561f
17 changed files with 454 additions and 189 deletions

View File

@ -16,15 +16,6 @@ export const auth = betterAuth({
console.log("Send OTP in auth.ts", phoneNumber, code);
await sendOtp(phoneNumber, code);
},
signUpOnVerification: {
getTempEmail: (phoneNumber) => {
return `${phoneNumber}@my-site.com`;
},
//optionally you can alos pass `getTempName` function to generate a temporary name for the user
getTempName: (phoneNumber) => {
return phoneNumber; //by default it will use the phone number as the name
},
},
}),
],
});