From f2264886d63aa21cfaccb1b9e2aa9e8d0c9ed5a6 Mon Sep 17 00:00:00 2001 From: keng Date: Wed, 25 Oct 2023 12:17:42 +0700 Subject: [PATCH 1/2] fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 53f8ba7..946a97b 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ While you don't _need_ any server code for authentication, odds are if you need This repo demonstrates the use of Firebase Auth for user storage, authentication, and session management in tandem with a Ruby on Rails-powered API. -- Client-side authentication logic is [inlined in the wecome view](https://github.com/Upstatement/rails_firebase_auth_demo/blob/main/app/views/welcome/index.html.erb#L30-L112), with Firebase Auth [loaded via CDN](https://github.com/Upstatement/rails_firebase_auth_demo/blob/main/app/views/welcome/index.html.erb#L28-L29). This logic includes: +- Client-side authentication logic is [inlined in the welcome view](https://github.com/Upstatement/rails_firebase_auth_demo/blob/main/app/views/welcome/index.html.erb#L30-L112), with Firebase Auth [loaded via CDN](https://github.com/Upstatement/rails_firebase_auth_demo/blob/main/app/views/welcome/index.html.erb#L28-L29). This logic includes: - Sign in button that redirects to Google for authentication - Rendering of JSON response from Firebase Auth after successful sign in - Test button to demonstrate an authenticated API call to the Rails backend From a02ccf63e9e9ce437760fca09e545b585d722f17 Mon Sep 17 00:00:00 2001 From: keng Date: Wed, 25 Oct 2023 12:18:17 +0700 Subject: [PATCH 2/2] fix uninitialized constant Net::HTTP --- app/controllers/api/users_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/api/users_controller.rb b/app/controllers/api/users_controller.rb index 476ecae..8cd06c4 100644 --- a/app/controllers/api/users_controller.rb +++ b/app/controllers/api/users_controller.rb @@ -2,6 +2,8 @@ # Users controller +require 'net/http' +require 'json' # API Module module Api # Users controller