mirror of
https://github.com/bourquep/mysa-js-sdk.git
synced 2026-02-04 01:31:05 +00:00
Merge branch 'main' into 180-rapid-succession-of-aws_error_mqtt_unexpected_hangup-errors
This commit is contained in:
@@ -719,6 +719,10 @@ export class MysaApiClient {
|
||||
});
|
||||
const credentials = await credentialsProvider();
|
||||
|
||||
if (!credentials.expiration) {
|
||||
throw new Error('MQTT credentials do not have an expiration time.');
|
||||
}
|
||||
|
||||
this._mqttCredentialsExpiration = dayjs(credentials.expiration);
|
||||
|
||||
this._logger.debug(`MQTT credentials expiration: ${this._mqttCredentialsExpiration.format()}`);
|
||||
|
||||
Reference in New Issue
Block a user