danielb_leal said over 7 years ago on Rails API - Authentication with JWT :

Hi, thanks for the video.

I clone this github repo, make manual user registration (via rails console) and then make a POST request to get jwt token (authenticate). Until then, it worked perfectly.

However, when I request localhost:3000/users/1 I get the page html, instead user data as json or 401 Unauthorized. How can I solve that?