Sinch Node.js SDK - v1.1.0
    Preparing search index...

    Interface SmsOptions

    An optional object for SMS Verification, with default values assumed for all contained values if not provided.

    interface SmsOptions {
        codeType?: CodeType;
        expiry?: string | Date;
        template?: string;
    }
    Index

    Properties

    codeType?: CodeType

    Accepted values for the type of code to be generated are Numeric, Alpha, and Alphanumeric. Default is Numeric.

    expiry?: string | Date

    The expiration time for a verification process is represented in the format HH:MM:SS.

    template?: string

    The SMS template must include a placeholder {{CODE}} where the verification code will be inserted, and it can otherwise be customized as desired.