Need Help Setting State within API callback in React Project

Dokončeno Zveřejněno před 6 lety K zaplacení v momentě doručení
Dokončeno K zaplacení v momentě doručení

I'm fairly new to React, so I'm still learning how to bind elements and when and where I can set the state. I think for an experience React developer, this task can be completed in under an hour. Please look at the attached screenshot to see you know how to set the state properly after the API callback.

More details:

I am trying to configure authentication in a React app using Microsoft Azure Active Director B2C. I'm using the [url removed, login to view] library to make the API call. I'm able to login and receive an authentication token and save it to local storage. I would like to set the state from within the API callback where the authentication token is returned. I am open to setting the state another way, but it seems like this approach will work if I set the state properly.

I've attached a screenshot that shows the configuration. The app is stored on bitbucket. If you are awarded the job, I can you to the repo or share the project on dropbox.

Thank you for bidding.

Azure JavaScript Node.js React.js

Identifikační číslo projektu: #16088511

O projektu

2 nabídek Projekt na dálku Aktivní před 6 lety

Uděleno uživateli:

visiontocode

Hello dear, dont waste time. Let come its very simple task. Let me have a chance. I will do it very quickly. thanks.

$25 USD za 1 den
(2 recenzí)
1.9

2 Freelnceři na tento projekt zveřejňují nabídky v průměru $25

Amazigh1989

Hello, Can we dicuss more. one small remarque, why you don't .catch() to handle errors?. feel free to contact me at an time.

$25 USD za 1 den
(0 Recenzí)
0.0