gonzalo-bulnes/simple_token_authentication

Did you mean? authenticate_api_v1_user! API versioning don't work with simple_token_authentication

erijonhson opened this issue · 4 comments

#42 don't work for me. Always prompt show me: Did you mean? authenticate_api_v1_user!
I'm using Rails 5 with Devise 4.3.0, Warden 1.2.7 and simple_token_authentication 1.15.1.

Here is my code: https://github.com/erijonhson/help-students/tree/adding-sessions
These are tests fail (GET, PUT, DELETE): https://github.com/erijonhson/help-students/blob/adding-sessions/spec/requests/api/v1/users_spec.rb

Any advice?

In Postman works like a charm. I'm confused.

This tip fix the authenticate_api_v1_user error!
But now it always happens 401.

Any advice?

@erijonhson
this is the response from the server

You need to sign in or sign up before continuing.

in other words you need to sign in so that you sign in

I have the same issue

Strange, because in my solution, I generate a token and put it in the header before making requests.
So I left this branch to find out this question. For curiosity.

Anyway, thanks for trying to help ...