Changes in src/Clients/Angular/finki-chattery/src/app/core/services/auth.service.ts [c205cc4:59d860c]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Clients/Angular/finki-chattery/src/app/core/services/auth.service.ts
rc205cc4 r59d860c 1 1 import { Injectable } from '@angular/core'; 2 import { User, UserManager , WebStorageStateStore} from 'oidc-client';2 import { User, UserManager } from 'oidc-client'; 3 3 import { Observable, of } from 'rxjs'; 4 4 … … 19 19 post_logout_redirect_uri: window.location.origin, 20 20 filterProtocolClaims: true, 21 loadUserInfo: true, 22 userStore: new WebStorageStateStore({ store: window.localStorage }) 21 loadUserInfo: true 23 22 }); 24 23 … … 55 54 56 55 public isStudent(): boolean { 57 return this.user ?.userType === ApplicationUserType.Student;56 return this.user !== null && this.user.userType === ApplicationUserType.Student; 58 57 } 59 58
Note:
See TracChangeset
for help on using the changeset viewer.