Skip to content

Commit

Permalink
Clarify use for storing devise google data in callbacks controller
Browse files Browse the repository at this point in the history
  • Loading branch information
zquestz committed Oct 27, 2024
1 parent 11af078 commit 719bd91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 719bd91

Please sign in to comment.