Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Component({
- selector: 'app-logout',
- templateUrl: './logout.component.html',
- styleUrls: ['./logout.component.css']
- })
- export class LogoutComponent implements OnInit {
- isAuthenticated = false;
- constructor(private adalSvc: Adal4Service) {
- this.isAuthenticated = this.adalSvc.userInfo.authenticated;
- }
- ngOnInit() {
- if (this.isAuthenticated) {
- this.adalSvc.logOut();
- }
- }
- }
Add Comment
Please, Sign In to add comment