mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Added clearAuthInfo()
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user