manishrasrani / ms-adal-angular6

This is a wrapper library for Angular 6+ (Angular 6.X.X and Angular 7.X.X) modules over Microsoft ADAL (Azure Active Directory Authentication Library)
https://www.npmjs.com/package/microsoft-adal-angular6
MIT License
34 stars 13 forks source link

How to logout or any method for logout #5

Closed systenics-ankit closed 5 years ago

Fallenstedt commented 5 years ago

@systenics-ankit When you use this service, there is a public method called logout

https://github.com/manishrasrani/ms-adal-angular6/blob/master/projects/ms-adal-angular6/src/ms-adal-angular6.service.ts#L35-L37

As an example, you can have a button that on click calls logout:

@Component({
selector: 'foo'
})
export class App Component {

constructor(private adalSvc: MsAdalAngular6Service){}

public logout() {
  this.adalSvc.logout()
}

}
manishrasrani commented 5 years ago

Agree with @Fallenstedt answer, closing this issue.