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
Sorry that I have to post this issue as I am stuck for a few days. I am using Rails 5 API-only app hosted with Heroku. I try to use React as the front end to do user authentication with J-Toker.
However, I keep getting the error "Completed 422 Unprocessable Entity". I have set the settings using Rack Cors gem to allow origin from any domains. So I really don't know what is wrong. Is there anyone who experience this can share how do you deal with this issue:
Was having the same issue myself, but I think I found the problem. In the DeviseTokenAuth Registrations Controller it is expecting a "confirm_success_url" param to be included along with the email, password, and password_confirmation. Try adding that and seeing how it goes.
Sorry that I have to post this issue as I am stuck for a few days. I am using Rails 5 API-only app hosted with Heroku. I try to use React as the front end to do user authentication with J-Toker.
However, I keep getting the error "Completed 422 Unprocessable Entity". I have set the settings using Rack Cors gem to allow origin from any domains. So I really don't know what is wrong. Is there anyone who experience this can share how do you deal with this issue:
Here's my code:
application_controller.rb
In my React:
Registration_form.js
I do not think the issue lies with J-Toker. Really thank you so much for your help on this.
The text was updated successfully, but these errors were encountered: