If I understood cookie signing correctly, then what it does is: Sign a cookie with a secret when setting it. Unsign the cookie with the same secret to validate that it hasn't been changed when recieving it.
Now in expressjs there is res.cookie() to set cookies and that takes a "signed" boolean to set if the cookie should be signed or not.
Now, what secret is used for signing? I think it might use the secret provided to cookieParser(), but that isn't actually mentioned explicitly in the documentation anywhere.
So my question is essentially: How do I set the secret to be used for signing cookies in expressjs?
I did read the express documentation and searched google and stackoverflow for an answers, sorry if I am missing something obvious.