What do you want to save?
Add Code snippet
New code examples
-
Other 2021-08-29 16:49:01
auth guard
// src/app/auth/auth.service.tsimport { Injectable } from '@angular/core';import { JwtHelperService } from '@auth0/angular-jwt';@Injectable()export class AuthService { constructor(public jwtHelper: JwtHelperService) {} // ... public isAuthenticated(): ... Add solution