|
|
@@ -1,5 +1,6 @@
|
|
|
import { Component } from '@angular/core';
|
|
|
import { AuthService } from '@auth0/auth0-angular';
|
|
|
+import { PermissionService } from './users/permission.service';
|
|
|
|
|
|
@Component({
|
|
|
selector: 'app-root',
|
|
|
@@ -10,9 +11,12 @@ export class AppComponent {
|
|
|
public title = 'RunnersMeet';
|
|
|
|
|
|
public constructor(
|
|
|
- private readonly authService: AuthService
|
|
|
+ private readonly authService: AuthService,
|
|
|
+ private readonly permissions: PermissionService
|
|
|
) {
|
|
|
- this.authService.getIdTokenClaims().subscribe(c => console.log("claims", c));
|
|
|
+ this.permissions.isRegistered().then(result => {
|
|
|
+ console.log('AppComponent | isRegistered:', result);
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
public logout(): void {
|