save LOGIN_RES info in sessionstorage

This commit is contained in:
leejh 2019-10-11 18:01:39 +09:00
parent f4f986944b
commit b49a8313a9
2 changed files with 7 additions and 0 deletions

View File

@ -45,6 +45,7 @@ import * as OptionStore from '@app/store/messenger/option';
import * as QueryStore from '@app/store/messenger/query'; import * as QueryStore from '@app/store/messenger/query';
import * as SyncStore from '@app/store/messenger/sync'; import * as SyncStore from '@app/store/messenger/sync';
import { VerInfo2, KEY_VER_INFO } from '@app/types/ver-info.type'; import { VerInfo2, KEY_VER_INFO } from '@app/types/ver-info.type';
import { KEY_LOGIN_RES_INFO } from '@app/types/login-res-info.type';
@Injectable() @Injectable()
export class AppMessengerResolver implements Resolve<void> { export class AppMessengerResolver implements Resolve<void> {
@ -114,6 +115,11 @@ export class AppMessengerResolver implements Resolve<void> {
}), }),
switchMap(res => { switchMap(res => {
loginRes = res; loginRes = res;
this.sessionStorageService.set<LoginResponse>(KEY_LOGIN_RES_INFO, {
...loginRes
});
return forkJoin([ return forkJoin([
this.queryProtocolService.auth({ this.queryProtocolService.auth({
deviceType: environmentsInfo.deviceType deviceType: environmentsInfo.deviceType

View File

@ -0,0 +1 @@
export const KEY_LOGIN_RES_INFO = 'ucap::LOGIN_RES_INFO';