Not able to use data returned by API

Hi Everyone,

I am trying to bind data returned by an API to a cookie and pass it to other pages but I am getting undefined in the cookie value instead.

I set up a cookie that holds two variables: the email, and the access token returned by the API on success event of a login form.
I set up the same cookie variables to get passed to another page, and then I attached those values to a title to see what their values are. As a result, for the email cookie, I am getting the right value, however for the token cookie I am getting undefined,

And I don’t know why? Any idea on why this might be happening?

Community Page
Last updated: