Skip to content

sms not sent #75

@leksyking

Description

@leksyking

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.")
    }
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions