Questions tagged [angular2-jwt]

Questions about helper library for working with JWTs in your Angular 2 applications

97 questions
0
votes
0 answers

Angular 2, contents of subscribe never called

I have a Spring boot backend that authenticates a user against the database and generates a JWT token for the user, now i am trying to setup the frontend with Angular 2, i have a login functions that supposed to request authentication from the…
0
votes
1 answer

IdentityServer BearerAuthentication from WebApi Middleware using angular2-jwt

after updating my project to angular 2 final i had a problem getting WebApi2 authoriaztion to work with IdentityServer3 and angular2-jwt. Before everything worked fine when in angular2-jwt configuration the headername was empty and the…
0
votes
1 answer

angular2-jwt missing authorization in header

I have an angular2 application which connects to an express/node server using jwt authentication. I'm using angular2-jwt, and this is my configuration in app.module.ts export function getAuthHttp(http) { return new AuthHttp(new AuthConfig({ …
David
  • 3,364
  • 10
  • 41
  • 84
0
votes
1 answer

Unhandled Promise rejection: No provider for AuthHttp! ; Zone: angular in angular2-jwt

dashboard.service.ts import { Injectable } from '@angular/core'; import { Http, Response, Headers, RequestOptions } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import { AuthHttp } from 'angular2-jwt'; import…
Haseeb Ahmad
  • 7,914
  • 12
  • 55
  • 133
0
votes
0 answers

token.split is not a function on ionic2 rc.5 project using angular2-jwt

I'm despairing.. installed npm package: "angular2-jwt": "^0.1.28" on my ionic2 project. (I'm using IntelliJ) When I run "ionic serve" I get: Runtime Error Error in ./MyApp class MyApp - caused by: token.split is not a function TypeError:…
tobtherush
  • 87
  • 2
  • 7
0
votes
2 answers

Angular 2 - send file as a part of form data

Does anyone know how to send picture (file) as a part of form data using AuthHttp (angular2-jwt) service in Angular 2?
mankers
  • 742
  • 10
  • 19
0
votes
1 answer

localStorage is not defined when call to tokenNotExpired

i want to integrate angular2-jwt in my project : https://github.com/auth0/angular2-jwt when i try to call the function tokenNotExpired i get this exception : Exception: Call to Node module failed with error: ReferenceError: localStorage is not…
1 2 3 4 5 6
7