I have a log in page and I make an HTTP POST request to post the data of the user in the API and I get back a response which I want to access and save into my app. Here is my code:
Here is the JSON response:
{
"code": 200,
"status": "succes",
"message": "You are now logged in",
"name": "Robert Doctor",
"phone": "0756374360",
"role": "doctor",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI",
"connCode": 233121
}