zandoan / turing-frontend

41 stars 33 forks source link

Profile update Api error #28

Open junniepat opened 5 years ago

junniepat commented 5 years ago

The profile update api returns a 401 unauthorized response, when I try to post to the server

DanielNgozika commented 5 years ago

Have you made sure the user is signed in? If yes, then you have to set a "user-key" property in the header of the API call with the JWT (JSON Web Token) as the property.

junniepat commented 5 years ago

Alright, thanks. I would try that.

Patrick .U. Igwe Front End Web Developer. Design Meister.

On Tue, 21 May 2019, 10:33 AM Daniel Ngozika, notifications@github.com wrote:

Have you made sure the user is signed in? If yes, then you have to set a "user-key" property in the header of the API call with the JWT (JSON Web Token) as the property.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/zandoan/turing-frontend/issues/28?email_source=notifications&email_token=AAZT5HJPN7FE7SHGESIYGE3PWO6VRA5CNFSM4HODYTN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV3KUCA#issuecomment-494316040, or mute the thread https://github.com/notifications/unsubscribe-auth/AAZT5HKMDRFL7Z4HYCBV6ZTPWO6VRANCNFSM4HODYTNQ .

DanielNgozika commented 5 years ago

Do tell me how it goes.

junniepat commented 5 years ago

It worked

Patrick .U. Igwe Front End Web Developer. Design Meister.

On Wed, 22 May 2019, 12:27 PM Daniel Ngozika, notifications@github.com wrote:

Do tell me how it goes.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/zandoan/turing-frontend/issues/28?email_source=notifications&email_token=AAZT5HKXNX6IIYFKXV2GZUTPWUUZNA5CNFSM4HODYTN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV6XXNY#issuecomment-494762935, or mute the thread https://github.com/notifications/unsubscribe-auth/AAZT5HJ7DWQW36O6INSZT6DPWUUZNANCNFSM4HODYTNQ .