Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails 7 need to add #1

Open
jjmountain opened this issue Jan 4, 2022 · 0 comments
Open

Rails 7 need to add #1

jjmountain opened this issue Jan 4, 2022 · 0 comments

Comments

@jjmountain
Copy link

Thanks for this!

In order to make this work in rails API mode you need to enable session management in middleware as stated in the RoR Guide here.

# This also configures session_options for use below
config.session_store :cookie_store, key: '_interslice_session'

# Required for all session management (regardless of session_store)
config.middleware.use ActionDispatch::Cookies

config.middleware.use config.session_store, config.session_options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant