Open FedericoEsparza opened 5 years ago
there's also this blog: https://medium.com/@iamjane/devise-with-react-webpacker-and-rails-dacbf9ae0233 and this code: https://github.com/timscott/react-devise, those two repos you shared have many more stars - I don't see anything else in github that looks better so I think you're on the right track - of course who knows if sticking with devise, or ripping out and replacing with something else will be easier - but worth exploring the devise path you've found I think ...
have found this issue regarding migrating from devise
to use devise_auth_token
... https://github.com/lynndylanhurley/devise_token_auth/issues/181
will have a look after lunch
I found this blog, which details working with rails and react https://learnetto.com/tutorials/api-user-authentication-with-devise_token_auth.
It works with https://github.com/lynndylanhurley/devise_token_auth, which works with Devise and was designed to work with https://github.com/kylecorbelli/redux-token-auth