Home How to implement signup/login for a mobile application with rails backend
Reply: 0

How to implement signup/login for a mobile application with rails backend

user721
1#
user721 Published in June 24, 2018, 11:57 pm

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

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.256687 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO