question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for HttpClient in AuthHttp

See original GitHub issue

Angular 4.3+ supports new HttpClient module which is an improvement over Http module. It seems to me that angular2-jwt doesn’t support it yet. Because, I can’t use it the following way:

import {HttpClient} from '@angular/common/http';
export function authHttpServiceFactory(http: HttpClient, options: RequestOptions) {
    return new AuthHttp(new AuthConfig(), http, options);
}

When will it be available to use ?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:24
  • Comments:9

github_iconTop GitHub Comments

4reactions
garkuwacommented, Oct 12, 2017

After reading the article of the same author how to implement auth/jwt tokens with pure Angular 4 interceptors, I made decision do not use any library… its so simple:D

4reactions
SylTicommented, Oct 12, 2017

It’s already available on the v1.0.0 branch : https://www.npmjs.com/package/@auth0/angular-jwt but still in beta

Read more comments on GitHub >

github_iconTop Results From Across the Web

AuthHttp in Angular 6 (Migration from Angular2 to Angular6)
this is how to add authentication using HttpClient and HttpHeaders as a service import { Injectable } from '@angular/core'; ...
Read more >
Angular Authentication: Using the Http Client and ... - Medium
When handling authentication in an Angular app, it's generally best to put everything you need in a dedicated service.
Read more >
HttpClient Authentication Guide
HttpClient supports three different types of http authentication schemes: Basic, Digest and NTLM. These can be used to authenticate with http servers or ......
Read more >
Auth0 Angular SDK Quickstarts: Call an API
With your app module configured with the HTTP interceptor from the Angular SDK, calls you make using Angular's built-in HttpClient to the Auth0...
Read more >
No jwt token sent with AuthHttp/http request in iOS App Store ...
{ provide: AuthHttp, useFactory: getAuthHttp, deps: [Http] }, ... ] }) // user-service.ts import { HttpClient } from '@angular/common/http'; ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found