Guest User

Untitled

a guest
Jun 17th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. @Component({
  2. selector: 'app-logout',
  3. templateUrl: './logout.component.html',
  4. styleUrls: ['./logout.component.css']
  5. })
  6. export class LogoutComponent implements OnInit {
  7. isAuthenticated = false;
  8.  
  9. constructor(private adalSvc: Adal4Service) {
  10. this.isAuthenticated = this.adalSvc.userInfo.authenticated;
  11. }
  12.  
  13. ngOnInit() {
  14. if (this.isAuthenticated) {
  15. this.adalSvc.logOut();
  16. }
  17. }
  18. }
Add Comment
Please, Sign In to add comment