mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-07-12 16:35:50 +00:00
wip
This commit is contained in:
@ -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
|
||||
},
|
||||
},
|
||||
}),
|
||||
],
|
||||
});
|
||||
|
Reference in New Issue
Block a user