Omniauth Session expires when browser is closed

后端 未结 3 867
清歌不尽
清歌不尽 2021-02-16 00:01

In my rails 3 app I use Omniauth for the user authentication part (fb/twitter).

Actually I follow this:

https://github.com/RailsApps/rails3-mongoid-omniauth

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-16 00:33

    Devise offers this functionality through its Rememberable module. OmniAuth integrates easily with it through the (you'd never guess it) OmniAuth module. It's even mentioned in the second link you posted!

提交回复
热议问题