Unclear how to call phoneNumber signup from frontend

I'm using phone-number for sign-up, my authClient looks like ..

export const authClient = createAuthClient({
  baseURL: "http://localhost:8081",
  plugins: [
    expoClient({
      scheme: "app",
      storagePrefix: "app",
      storage: SecureStore,
    }),
    phoneNumberClient(),
  ],
});


my auth backend is properly configured, but in my register page I'm unsure what to call, should it be -
await authClient.signUp.email({
      phoneNumber: "+1234567890",
    });


There is no authClient.signUp.phoneNumber() function
Solution
You have to send the otp for the verification and make sure to pass signUpOnVerification to set up a temporary email since right better auth requires an email fields and also the same for name. And you can sign in back with signin.phoneNumber .
Was this page helpful?