Sinch Node.js SDK - v0.0.2
    Preparing search index...

    Interface ClientCredentials

    Optional. Used for OAuth2 authentication.

    interface ClientCredentials {
        client_id: string;
        client_secret: string;
        endpoint: string;
    }
    Index

    Properties

    client_id: string

    The Client ID that will be used in the OAuth2 Client Credentials flow.

    client_secret: string

    The Client Secret that will be used in the OAuth2 Client Credentials flow.

    endpoint: string

    The endpoint that will be used in the OAuth2 Client Credentials flow. Expected to return a JSON with an access token and expires_in value (in seconds). The expires_in value, which must be a minimum of 30 seconds and a maximum of 3600 seconds, is how long Sinch will save the access token before asking for a new one.