Questions tagged [angular-token]

6 questions
13
votes
2 answers

MSAL Angular HTTP interceptor for localhost not attaching token

I'm trying to call a localhost API and to attach the bearer token on the header. It should be done by msal-angular automatically. For now, I have added the localhost API route to the protectedResourceMap but there is no bearer token inside the…
2
votes
2 answers

Angular 9 - how to inject dynamic parameters into a service constructor

I need to make requests to a backend url which comes in this form: localhost:8000/myapp/item1/:id1/item2/:id2/item3 where id1 and id2 are dynamic numbers. I've thought using a service that takes 2 arguments in the constructor, something like…
1
vote
0 answers

Signin into electron app from browser window

I have electron app which uses Angular-Token for Angular and Devise Token Auth for rails backend. Oauth sign in works fine in browser using api provided by Angular-Token. It creates a new window and returns an observable and window closes after…
0
votes
1 answer

Auth headers not set using angular-token

I just started with an angular app using angular-token and a rails back-end with devise-token-auth, I have the next "on-submit" in a sign-in component: onSubmit() { this.output = null; this.tokenService.signIn(this.signInData).subscribe( …
Fito
  • 478
  • 4
  • 10
0
votes
0 answers

nativescript using angular-token results in localStorage error

I'm using nativescript 6.1.1 with Angular 8.0 and my backend is Rails 5.x. I'm trying to use a npm plugin called angular-token which I have working in Angular but not in nativescript. The error I get is; Installing on device…
map7
  • 5,096
  • 6
  • 65
  • 128
0
votes
1 answer

Is angular-token@6 compatible to angular@5 / ionic@3?

I'm using the ionic framework in version 3. At time of writing, ionic 4 is still in beta. To my understanding, ionic 3 is only compatible up to angular 5. I'm trying to add angular-token, which currently is at 6.0.4. A version 5 of angular-token…
fiedl
  • 5,667
  • 4
  • 44
  • 57