amarillo11 said over 5 years ago on Rails API App - Authentication with JSON Web Tokens :
When I tried the first curl command, I got a 401 Unauthorized so I went and copied from the notes in case I had made a mistake, but the error remains. Any idea what would be stopping me from getting an auth_token returned? My logs show the following: Processing by SessionsController#create as / Parameters: {"'{,password:1234}'"=>"[FILTERED]"} SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT ? [["LIMIT", 1]] Completed 401 Unauthorized. I also created the user in the same way as the video shows, with a name, password, and password_confirmation.