You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently working with an API, that has a /login route, which responds with a token in the response body.
I would like to store the token in an environment variable to use it for authentication.
If I use the raw body response the the quotes are considered part of the token, which breaks my authentication.
But that fails with TypeError: Cannot read property 'typename' of null. My guess is, that the response is async and the filter has problems with async content …
Is there a way to remove the quotes from the body?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I am currently working with an API, that has a
/login
route, which responds with a token in the response body.I would like to store the token in an environment variable to use it for authentication.
If I use the raw body response the the quotes are considered part of the token, which breaks my authentication.
I have tried to remove the quotes with this:
But that fails with
TypeError: Cannot read property 'typename' of null
. My guess is, that the response is async and the filter has problems with async content …Is there a way to remove the quotes from the body?
Beta Was this translation helpful? Give feedback.
All reactions