• Timothy Andrew's avatar
    Implement "remember me" for OAuth-based login. · 370e8e33
    Timothy Andrew authored
    - Pass a `remember_me` query parameter along with the initial OAuth request, and
      pick this parameter up during the omniauth callback from
      request.env['omniauth.params']`.
    
    - For 2FA-based login, copy the `remember_me` param from `omniauth.params` to
      `params`, which the 2FA process will pick up.
    
    - For non-2FA-based login, simply call the `remember_me` devise method to set
      the session cookie.
    370e8e33
omniauth_callbacks_controller.rb 5.18 KB