mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 01:15:28 +00:00
fix(mobx): properly persist login state
This commit is contained in:
@@ -85,6 +85,7 @@ export default class Auth implements Store, Persistent<Data> {
|
||||
@action setSession(session: Session) {
|
||||
this.sessions.set(session.user_id, { session });
|
||||
this.current = session.user_id;
|
||||
console.log(this.sessions, this.current);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user