I'm current trying to implement a login with google as a option to make easier for the user to login and create user.
I have a Rails API that uses devise to login, and a front using React that makes requests to that Rails 5 API.
Im not sure if I have to do all this login on back end or at front end, my greatest problem is create a user when login with google, because I cannot create a user without a password.
I never created this kinda of login system so I'm not sure how works, I believe I have to implement all in back end, using the google oauth gem, but I wanna know if someone has tips how to do it.
Should I use react components only? Rails gems only? or both is the correct answer?
Thank you.