Saving token after a post request to API endpoint

Hi All,

How do I save a token from REST API to use it in subsequent queries.

  • User Login // Okay
  • Send POST request to login Api //okay
  • Save response // Am stuck here
  • Then redirect // Not yet here

I have already created a global token variable, so i just need to save the token returned from login response.

1 Like