Closed

Ionic 3 Authorization issue: JWT: AuthHttp request contains no token in iOS

I got a problem with sending the token with the authhttp/http request.

Only on iOS my http requests are failing. The server (API) always responds with a 401 Unauthorized: “A token is required”.

This is my flow: user logs in > gets token from API > stores token in NativeStorage (normal storage broken in iOS) > redirect to profile page > does a [login to view URL] GET request for the user info with a token in the header > receives requested user info from API

=> the GET requests always errors.

I’ve tried using http request with a header, options, etc. I’ve tried to use [login to view URL] (was original request in my app, works on Android & browser) and I’ve tried to use the native advanced HTTP requests. But none of these methods work, because there is no token sent with the request, although I include a header.

Tried (almost) every solution I’ve found, but none works.

It is not a CORS problem, because the login request ([login to view URL]([login to view URL] + ’/get_token, creds) returns a token from that same API.

So in general: there is a problem with sending the token in a header with the request, because the API doesn’t receive one.

Project needs:

1/ you have to have a Bitbucket account

2/ you have to be able to test the solution yourself on an iPhone (not simulator etc) — we use Ionic pro for quick deploys

3/ A team member is able to provide more info and support on Skype

Skills: Ionic Framework, iOS Development, Mobile App Development

See more: ionic 3, ionic 3 social sharing example, ionic 3 share, ionic 3 build apk, ionic 3 build android apk, ionic 3 listview example, ionic 3 login example, ionic 3 project example, ionic 3 provider example, angular 5 ionic 3 example, ionic 3 import cordova plugin, ionic 3 templates, ionic 3 vs react native, ionic 3 vs react native performance, ionic 3 change app name, ionic 3 + laravel, ionic 3 twilio, ionic 3 firebase tutorial, firebase ionic 3, ionic 3 firebase chat app

About the Employer:
( 21 reviews ) Eppegem, Belgium

Project ID: #17980500

8 freelancers are bidding on average €157 for this job

mekiho

Hello employer Can I help you I am very confident in your project So if you hire me, you will get wonderful result. Looking for work with you. Thanks

€155 EUR in 3 days
(73 Reviews)
6.9
TD888

Dear sir! How are you? I'm dedicated ionic app developer with more than 4 years experience [login to view URL] [login to view URL] So I'm sure i can do your project perfectly Please feel free contact to me Will be waiting for re More

€250 EUR in 3 days
(14 Reviews)
4.7
WebExpertsx

We read your requirements about Ionic 3 Authorization issue and want you to know that we develop web and mobile applications and deploy to online servers. We can provide you with iOS applications, Android applications More

€133 EUR in 2 days
(4 Reviews)
4.2
amitadlakha04

Hi There I will solve problem with sending the token with the authhttp/http request.i am able to provide you support on $kype Thanks

€155 EUR in 3 days
(6 Reviews)
3.9
greenforest0204

hello i am very interested in your post project i am sure i can give you good result in time. i have rich experience on it. please call me Dmitrii. looking forward your reply. best regards

€155 EUR in 3 days
(2 Reviews)
2.9
zhengdao630

Hi As a professional ionic developer, I can fix your http issue. I can start this project right now Please contact with me to discuss more details. Thanks, Zheng. D

€200 EUR in 3 days
(2 Reviews)
1.7
makwanadeveloper

Hi, I am working on ionic since ionic 2 is released. I will solved your issue. I have Bitbucket account.

€155 EUR in 5 days
(0 Reviews)
0.0
nativecodr

Hello, I have experience with debugging HTTP requests in iOS apps, I can help you fix the problem. I also have a real iPhone device and a Bitbucket account. I worked as iOS app developer for 2 years.

€50 EUR in 3 days
(0 Reviews)
0.0