-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
Setting the medium in Otp to sms generates the otp but does not send it unlike for email or perhaps I am missing something.
const createOtp = async (user)=>{
try {
const payload = {
length: 5,
customer:{
name: user.firstName + " " + user.lastName,
email: user.email,
phone: "2347097211345"
},
sender: "omo iyami",
send: true,
medium: ["sms"],
expiry: 5
}
const response = await flw.Otp.create(payload)
return response;
} catch (error) {
throw new Error("Something went wrong, try again later.")
}
};
KWIZERA-CALEB
Metadata
Metadata
Assignees
Labels
No labels