Update documentation examples

generateSignature example function should be updated to exclude any values that are null, which are allowed in the RedirectParams interface type:

const data = Object.entries(params)
            .filter(([key, value]) => value !== null && value !== undefined)
            .map(([key, value]) => `${key}=${value}`)
            .concat(`salt=${apiKey}`)
            .join('|');

Please authenticate to join the conversation.

Upvoters
Status

Completed

Board
💡

Feature Request

Date

About 1 year ago

Author

sudoferraz

Subscribe to post

Get notified by email when there are changes.