Error code: 40142 - Token expired code

This error is returned when your current authentication token has expired. You can use authUrl or authCallback to allow tokens to be automatically renewed by the client SDK. However it's important to note that you will receive this error when using AuthUrl or authCallback but the client SDK will take care of renewing the token for you.