-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interceptor for nativescript-background-http requests #195
Comments
Hi @progressify , |
Hi, I have read and used this tutorial to implement JWT, intercept and refresh token logic: but seem to work only with the HTTP request from '@angular/common/http', not from nativescript-background-http |
to have a workaround you can add your Authorization header manually like |
Exactly the same issue here. When I try your workaround, the Authorization header isn't sent to server. |
Hi,
In my project, I have integrated JWT authentication with an interceptor for all HTTP request.
Exists a method for intercept the requests of nativescript-background-http?
Which platform(s) does your issue occur on?
Please, provide the following version numbers that your issue occurs with:
tns --version
to fetch it)5.0.1
node_modules/tns-core-modules/package.json
file in your project)"tns-core-modules": "^5.0.2",
"tns-android"
and"tns-ios"
properties in thepackage.json
file of your project)"tns-ios": {
"version": "4.2.0"
},
"tns-android": {
"version": "5.0.0"
}
package.json
file of yourproject and paste your dependencies and devDependencies here:
"nativescript-background-http": "^3.3.1",
This is the code I have used to intercept all the http requests:
app.module.ts
The text was updated successfully, but these errors were encountered: