OmniAuth::NoSessionError - You must provide a session to use OmniAuth. (configured in devise)

前端 未结 2 1333
感动是毒
感动是毒 2021-02-04 09:12

Hi I am learning how to use omniauth as backend for ember app.

when i run my application I get the below mentioned erroe OmniAuth::NoSessionError - You must provide a se

2条回答
  •  有刺的猬
    2021-02-04 09:29

    Into application.rb

    ...
    
    config.api_only = true
    config.session_store :cookie_store, key: '_interslice_session'
    config.middleware.use ActionDispatch::Cookies # Required for all session management
    config.middleware.use ActionDispatch::Session::CookieStore, config.session_options
    

提交回复
热议问题