"Reset" button after Social Signup not clearing the session
Closed this issue · 2 comments
jfrux commented
jfrux commented
Is there something that needs to be removed from the session to clear the omniauth stuff? and make the @auth object non-existant
jfrux commented
Not sure if we want to put this into the build somewhere but I fixed mine with this sessionscontroller changes:
class Users::SessionsController < Devise::SessionsController
include DeviseReturnToConcern
def new
@failed = params[:failed]
@provider = params[:provider]
return render 'failed' if @failed
super
end
def verify_signed_out_user
session[:omniauth] = nil
super
end
end