Open weteamsteve opened 5 years ago
Check out Devise with React Webpacker and Rails (incomplete guide) Check out React Rails Devise Sessions Basic
class UsersController < ActionController::Base
def check_for_user
if user_signed_in?
render :json => current_user.to_json
else
render :json => User.new.to_json
end
end
end
Get user authentication working backend to frontend, allow user to execute join / promote / demote actions on squads appropriately.
Investigate react-devise (github).
Probably some way of using JWT (JSON Web Token) for Devise authentication, and then having the routes and stores available on the frontend. Check out react-devise usage for more information.