onButtonClick= (authLink) => {
if(authLink){
window.open(authLink, '_blank');
}
};
response from this url is :-
{
"statusCode":"STATUS_OK",
"statusMessage":"The operation was successful.",
"statusUserMessage":"The operation was successful.",
"authToken":"AJFCNA",
"opaqueData":
{"accessToken":"SJD.skb.zV-sdb-kajsb-dkjbc"},
"authTokenValidity":21600,
}
}
How to get this response in my code, I want to get the value for the key authToken
.
I have no idea. what can I do for this ?