Skip to content
Choose a tag to compare

Release 4.19.0

@smooch-ci-web smooch-ci-web released this
· 110 commits to master since this release
Choose a tag to compare

What's new?

onInvalidAuth Method

Added a new onInvalidAuth delegate which gets notified when a request fails because of an invalid JWT, allowing you to renew credentials without having to call Smooch.login(). The delegate must return a new JWT token as a string or Promise<string> that will resolve into the JWT.

Sample Usage

    appId: '<app-id>',
    delegate: {
        onInvalidAuth() {
            return new Promise((resolve) =>