Vonage / vonage-go-sdk

A lightweight library to help Go users everywhere integrate with the Vonage APIs. Issues and PRs all really welcome!!
https://vonage.github.io/vonage-go-sdk/
Apache License 2.0
51 stars 32 forks source link

The pin expiry option is ignored in the Verify request #74

Open panyushov opened 2 years ago

panyushov commented 2 years ago

Setting pin expiry to 60 seconds has no effect. SMS received after the API call states that the pin will expire after 5 minutes (default value).

Example:

    opts := vonage.VerifyOpts{
        PinExpiry:  60,
    }
    response, errResp, err := verifyClient.Request(
        phoneNumber,
        "TestBrand",
        opts,
    )