Commit 1cde9970 authored by hasan khaddour's avatar hasan khaddour

add jwt interceptor

parent 8aab3728
......@@ -10,7 +10,7 @@ export class JwtInterceptor implements HttpInterceptor {
constructor(private authService : AuthenticationService ,) {}
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
const token = this.authService.getToken();
const token = this.authService.getAuthorizationToken();
if (token) {
request = request.clone({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment