From 719bd91e5763100c55c350df2a8200f8146b213f Mon Sep 17 00:00:00 2001 From: quest Date: Sat, 26 Oct 2024 16:40:43 -1000 Subject: [PATCH] Clarify use for storing devise google data in callbacks controller --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7b3b4e5..3bb8d85 100644 --- a/README.md +++ b/README.md @@ -196,7 +196,8 @@ class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController flash[:notice] = I18n.t 'devise.omniauth_callbacks.success', kind: 'Google' sign_in_and_redirect @user, event: :authentication else - session['devise.google_data'] = request.env['omniauth.auth'].except('extra') # Removing extra as it can overflow some session stores + # Useful for debugging login failures. Uncomment for development. + # session['devise.google_data'] = request.env['omniauth.auth'].except('extra') # Removing extra as it can overflow some session stores redirect_to new_user_registration_url, alert: @user.errors.full_messages.join("\n") end end