|
|
@@ -1,4 +1,5 @@
|
|
|
import { Component } from '@angular/core';
|
|
|
+import { AuthService } from '@auth0/auth0-angular';
|
|
|
|
|
|
@Component({
|
|
|
selector: 'app-root',
|
|
|
@@ -8,6 +9,15 @@ import { Component } from '@angular/core';
|
|
|
export class AppComponent {
|
|
|
public title = 'RunnersMeet';
|
|
|
|
|
|
- public constructor() {
|
|
|
+ public constructor(
|
|
|
+ private readonly authService: AuthService
|
|
|
+ ) {
|
|
|
+ this.authService.getIdTokenClaims().subscribe(c => console.log("claims", c));
|
|
|
+ }
|
|
|
+
|
|
|
+ public logout(): void {
|
|
|
+ this.authService.logout({
|
|
|
+ federated: true,
|
|
|
+ });
|
|
|
}
|
|
|
}
|