Support for HttpClient in AuthHttp
See original GitHub issueAngular 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:
- Created 6 years ago
- Reactions:24
- Comments:9
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
It’s already available on the v1.0.0 branch : https://www.npmjs.com/package/@auth0/angular-jwt but still in beta