You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a quick work-around you can copy mount_devise_token_auth_for code to top, out of namespaces, since both versions will use the same credentials. Then you can have multiple mount_devise_token_auth_for entries with duplicate endpoints.
if you want to limit your routes to minimum, then you should use authenticate_v1_user! in your v1 controller and vice versa.
Also amitfriedman12 wrote in this issue using devise helper to your controllers might help.
Hello !
I have a huge problem, to day I wanted to versioning my api and my auth routes so I did this
but now I have an error
undefined method 'authenticate_user!'
and don't find solution.Can someone have any idea ?
The text was updated successfully, but these errors were encountered: