$token is in the format "Bearer gfsjdlfglfdkgslkjfdlskjfljgk"
the message I get is {"code":401,"message":"JWT Token not found"}
if I change Authorization to HTTP_AUTHORIZATION I am getting status code 200 but the output is not the expected the endpoint should return and I can get using postman.
any help? what's the best way to pass a Bearer token to a GET request?
I am trying to test an api but I am having some issue passing the bearer token. I make a first call to get the token:
and a second one using the token:
$token is in the format "Bearer gfsjdlfglfdkgslkjfdlskjfljgk"
the message I get is {"code":401,"message":"JWT Token not found"}
if I change Authorization to HTTP_AUTHORIZATION I am getting status code 200 but the output is not the expected the endpoint should return and I can get using postman.
any help? what's the best way to pass a Bearer token to a GET request?
thanks M