How to capture the authorization of the headers to get the token using httpclient (angular 6)

-1

My question is as follows, I'm using httpclient, and I need to get the jwt token, but it's coming in header no authorization (as it shows in the image), I'm not able to get this token because it's not coming in payload, and yes in the header. Is there any way to capture this token? as I access the header to get the Authorization bearer.

login(username: string, password: string) { return this.http.post<any>({BASE}/login, {username, password }) .pipe(map(res=> { console.log(res) }))}

    
asked by anonymous 28.12.2018 / 19:33

0 answers