I have a login form and I am able to post my the form values. After a successful POST request, I get authentication token returned from the API. I need to save this token for fu
You have to call as
getUserToken().then(res => { console.log(res); });
Since this is an async call.