Open VityaSchel opened 11 months ago
Hi @VityaSchel,
This package only works with signed cookies. It is quite old at this point. It looks like when Rails 4 came out they introduced encrypted cookies. In Rails 5.2, the signing algorithm changed from SHA1 to SHA256. I'm not sure which version of Rails you are using, but you could try changing sha1
to sha256
node docs.
hi I spent 6 hours and I didn't figured out how to parse this cookie. it's basically the same. mastodon on rails writes session id and then to cookie:
I execute this code:
and it returns
which means that digest from cookie value is not equals to generated hex digest with sha1. please help. I don't know rails nor ruby nor backend at all. what are the possible ways of solving this issue?
here are some files in mastodon's ruby directory:
config/secrets.yml
config/initializers/devise.rb
I double-checked that data in cookie value is valid and when decoded becomes json object with sessionid, but signature can't be verified