Class for intercepting all HTTP requests for User verification

Hierarchy

  • TokenInterceptor

Implements

  • HttpInterceptor

Constructors

Properties

Methods

Constructors

Properties

authenticationService: AuthenticationService

For verifying a User is logged in

Methods

  • Set the Authorization header of a HTTP request if the User is logged in

    Returns

    Cloned request with Authorization if user is logged in, else the original request

    Parameters

    • request: HttpRequest<any>
    • next: HttpHandler

    Returns Observable<HttpEvent<any>>

Generated using TypeDoc