Skip to content

Instantly share code, notes, and snippets.

@joshharms
joshharms / authentication.service.ts
Created July 19, 2017 18:36
Angular Interceptor
import { Injectable } from '@angular/core';
import {
HttpRequest,
} from '@angular/common/http';
import { Http, Response, Headers, RequestOptions } from '@angular/http';
import { Subject, Observable } from 'rxjs/Rx';
import { tokenNotExpired } from 'angular2-jwt';
import { environment } from '../../environments/environment';
@Injectable()