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
I have a project which uses devise for authentication. Now we need an API. I am trying to use devise_token_auth for my API and standard devise for everything else.
First of all. Is this a good or bad idea?
I see that if I register user on html pages (which use devise) and then try to login with same credential on API (devise_token_auth) I receive:
namespace :api, defaults: {format: :json} do
namespace :v1 do
mount_devise_token_auth_for 'User', at: 'auth', skip: [:omniauth_callbacks]
end
end
devise_for :users
The text was updated successfully, but these errors were encountered:
Hi @knagode , could you please help me as you have the configuration of the drivers, routes and models.
I've been trying for days to work together but I have not been able to achieve it
I have a project which uses devise for authentication. Now we need an API. I am trying to use devise_token_auth for my API and standard devise for everything else.
First of all. Is this a good or bad idea?
I see that if I register user on html pages (which use devise) and then try to login with same credential on API (devise_token_auth) I receive:
{"errors":["Invalid login credentials. Please try again."]}
routes.rb
The text was updated successfully, but these errors were encountered: