sendMobileOTP()
Sends a mobile OTP via SMS. Will register the account if it doesn't already exist
- Javascript
- API
const { user, error } = await kontenbase.auth.sendMobileOTP('+62817891011')
[POST]
https://api.kontenbase.com/query/api/v1/API_KEY/auth/send-mobile-otp
Parameters
| Name | Type | Description |
|---|---|---|
| phoneNumber (required) | string | The user's phone number WITH international prefix |
note
- This function should only be called on server