DenoDDeno
Powered by
HappiePlantH
Denoβ€’17mo agoβ€’
1 reply
HappiePlant

Oak Signed Cookies error

Hi!
I keeping getting this error:
error: Uncaught (in promise) TypeError: keys required for signed cookies.
        throw new TypeError("keys required for signed cookies.");
error: Uncaught (in promise) TypeError: keys required for signed cookies.
        throw new TypeError("keys required for signed cookies.");

I tried searching for how to use a cookie secret, but I couldn't find it.

This is the line where it fails:
ctx.cookies.set("clientState", "random-string", { maxAge: 1000 * 60 * 5, signed: true })
ctx.cookies.set("clientState", "random-string", { maxAge: 1000 * 60 * 5, signed: true })
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Silence error logs on Oak server
SkepticMysticSSkepticMystic / help
4y ago
HTTPS Oak Deno
ivandpfIivandpf / help
3y ago