I have application which is written with ruby on rails. I want to implement signup/login from the mobile application. I usually use devise in web application. But I have no idea about how to implement login/signup features using JSON requests and responses.
I tried to use devise token auth and I'm stuck in the middle. Devise token auth - Can't create user account after installing devise token authgem
Is there anyway to implement authentication it in a similar way?
The flow will be like >
User enter mail address and password > send a POST request to server >
User send some request to protected controllers and server respond to it if he is signed in