System Information
- Strapi Version: 3.6.5
- Operating System: 20.04
- Database: MySQL
- Node Version: 10.19.0
- NPM Version: 7.18.1
- Yarn Version: 1.22.10
Hello, how do I verify the cookie from it’s signature?
The behaviour:
I set a cookie from Strapi using
ctx.cookies.set("token", token, {
domain: ".domain.com"
})
After this I get in return, a set cookie header for my “token” cookie and another for “token.sig”
Then I made a research so I find out that it should be signed automaticly using Keygrip but I do not find a way to verify that it’s valid.
So, now I ask about how do I verify it propperly using some library that already comes with Strapi base.
Thanks in advance