8 access_token: localStorage.getItem('access_token'),
9 refresh_token: localStorage.getItem('refresh_token'),
10 token_type: localStorage.getItem('token_type')
14 constructor(hash?: any) {
16 this.access_token = hash.access_token;
17 this.refresh_token = hash.refresh_token;
19 if (hash.token_type === 'bearer') {
20 this.token_type = 'Bearer';
22 this.token_type = hash.token_type;
28 localStorage.setItem('access_token', this.access_token);
29 localStorage.setItem('refresh_token', this.refresh_token);
30 localStorage.setItem('token_type', this.token_type);