feat: add disable / delete funct; bump revolt-api

This commit is contained in:
Paul Makles
2022-06-10 14:32:21 +01:00
parent e0ca1681bd
commit 6be0807433
8 changed files with 47 additions and 26 deletions

View File

@@ -58,7 +58,7 @@ export interface LegacySyncOptions {
export interface LegacyAuthState {
accounts: {
[key: string]: {
session: API.Session;
session: Session;
};
};
active?: string;

View File

@@ -8,7 +8,7 @@ import Persistent from "../interfaces/Persistent";
import Store from "../interfaces/Store";
interface Account {
session: API.Session;
session: Session;
}
export interface Data {
@@ -82,7 +82,7 @@ export default class Auth implements Store, Persistent<Data> {
* Add a new session to the auth manager.
* @param session Session
*/
@action setSession(session: API.Session) {
@action setSession(session: Session) {
this.sessions.set(session.user_id, { session });
this.current = session.user_id;
}