import registry from 'registry'; import User from 'User'; export default class Session { username = null; password = null; constructor({username, password}){ this.username = username; this.password = password; this.user = new User(this); } async initialize(){ if(!registry.universe) throw new Error('Universe not found. (Universe must be initialized prior to instantiating users.)') await this.user.initialize(); } }