BA
Better Auth•2mo ago
Roberto

How to sign in with phone number + otp after verification

I want to do sign up + sign in with phone number + otp Ive implemented phone number verification and all went smooth, but I want to use the same flow (phone number + otp) to sign in the user again after session expires. The method signin.phoneNumber requires password but I want my auth to be passwordless
3 Replies
bekacru
bekacru•2mo ago
you can use verify again. If the user is already registed, it'll just sign in them in.
Roberto
RobertoOP•2mo ago
how to check if the users is already registered? im doing a workaround right now because I setup the profile of the user. if the name is temp (the phone number) then I go to setup profile screen otherwise I log the user. but I don't think this is a good approach 😅
bekacru
bekacru•2mo ago
I'll see if we can provide a better flag for new users

Did you find this page helpful?