mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-21 04:25:27 -04:00
Log out properly.
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "revolt.js",
|
||||
"version": "4.0.0-alpha.6",
|
||||
"version": "4.0.0-alpha.7",
|
||||
"main": "dist/index.js",
|
||||
"repository": "https://gitlab.insrt.uk/revolt/revolt.js",
|
||||
"author": "Paul Makles <insrt.uk>",
|
||||
|
||||
+2
-1
@@ -211,8 +211,9 @@ export class Client extends EventEmitter {
|
||||
* Utility functions.
|
||||
*/
|
||||
async logout() {
|
||||
this.reset();
|
||||
this.websocket.disconnect();
|
||||
await this.req('GET', '/auth/logout');
|
||||
this.reset();
|
||||
}
|
||||
|
||||
reset() {
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
export * from './Client';
|
||||
export { Channel, User, Message } from './api/objects';
|
||||
|
||||
export const LIBRARY_VERSION = '4.0.0-alpha.6';
|
||||
export const LIBRARY_VERSION = '4.0.0-alpha.7';
|
||||
|
||||
export const defaultConfig = {
|
||||
apiURL: 'https://api.revolt.chat',
|
||||
|
||||
Reference in New Issue
Block a user