1 import { Token } from './token';
8 return new User(localStorage.getItem('username'), Token.load());
11 constructor (username: string, hash_token: any) {
12 this.username = username;
13 this.token = new Token(hash_token);
17 localStorage.setItem('username', this.username);