I have the following http POST trying to be returned to another function:
return this.http.post(ENDPOINT_URL + 'MY-JWT-VALIDATION' + token, {observe: 'response'}, {headers: headers})
.pipe(map( (res) => { return res; } ));
However, what I'm getting from the return is an Observable object with all that data vs. the actual response of the call. I've tried changing from map
to tap
to subscribe
and everything.
Google seems to infer I'm doing this properly, but for some reason I can't get a response back.. even if I just return a static string.
Been stuck at this for a hour. My other http.post calls seem to be working fine and carry this same logic though I pass them through a function first.
Am I overlooking something?