starterkits/rails4-starterkit

"Reset" button after Social Signup not clearing the session

Closed this issue · 2 comments

screen shot 2014-09-07 at 1 18 11 pm

when I click the Reset button it's saying "logged out" but when I go back to sign-up it's still there...

Any tips?

Is there something that needs to be removed from the session to clear the omniauth stuff? and make the @auth object non-existant

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