Skip to main content

sendMobileOTP()

Sends a mobile OTP via SMS. Will register the account if it doesn't already exist

const { user, error } = await kontenbase.auth.sendMobileOTP('+62817891011')

Parameters

NameTypeDescription
phoneNumber (required)stringThe user's phone number WITH international prefix
note
  • This function should only be called on server