diff --git a/src/WAConnection/Base.ts b/src/WAConnection/Base.ts index 499d4b9..bda21a8 100644 --- a/src/WAConnection/Base.ts +++ b/src/WAConnection/Base.ts @@ -90,6 +90,18 @@ export default class WAConnectionBase { macKey: this.authInfo.macKey.toString('base64'), } } + /** + * Clear authentication info so a new connection can be created + */ + clearAuthInfo () { + this.authInfo = { + clientID: null, + serverToken: null, + clientToken: null, + encKey: null, + macKey: null, + } + } /** * Load in the authentication credentials * @param authInfo the authentication credentials or path to auth credentials JSON