I am using omniauth-google-oauth2
to build login and logout. When i click login for first time, i get redirected to accounts.google.com and login. When I click logout and login again, it automatically logs me in without asking for account and password.
For logout, I already destroyed the session and set cookies. What else should I do to implement the feature of manually login after logout?
Console output:
#<OmniAuth::AuthHash credentials=#<OmniAuth::AuthHash expires=true expires_at=1530593556 token="ya29.Glxxxxxx39-nW"> extra=#<OmniAuth::AuthHash id_info=#<OmniAuth::AuthHash at_hash="9LNQNsk6dez9g" aud="741325071dgbmec6sj969ajh.apps.googleusercontent.com"...
Processing by AuthController#google_callback as HTML
Parameters: {"state"=>"a69a53ebdaa9ce3b5b6082d8a17b50eafa4", "code"=>"4/AACDlTY37f_Rm6UJxfUPJezvalNVrfX5iSdsX1AnPDGna9gVLlwlLQHXJqjgJL9Xv0"}