| 123456789101112131415161718192021222324 |
- import { Component } from '@angular/core';
- import { AuthService } from '@auth0/auth0-angular';
- @Component({
- selector: 'app-root',
- templateUrl: './app.component.html',
- styleUrls: ['./app.component.scss']
- })
- export class AppComponent {
- public title = 'RunnersMeet';
- public constructor(
- public readonly authService: AuthService
- ) {
- }
- public login(): void {
- this.authService.loginWithRedirect();
- }
- public logout(): void {
- this.authService.logout();
- }
- }
|