I am planning to migrate some part of my website from Ruby to React while others still need to be supported on Ruby as Front-end. But the main issue I am facing is concerned with Login Service.
In case of Ruby, after Login,cookie that gets generated is defined as
Rails.application.config.session_store :cookie_store, key: '_my_session'
So, even if I create a new login page using ReactJS ,I need to create a similar cookie(as I need to support some old pages on Ruby that use this cookie for authorization) after successful authentication. So is there any way to create this 'my_session' from ReactJS ?Or How I can decode 'my_session' cookie?
Subscribe to get latest updates