Encrypt/Decrypt Cookie

when I set response.cookie(“name”, “jan”);

the cookie value was encrypted. How to avoid that?

Just use a plainCookie method

response.plainCookie('name', 'jan');

Docs: https://adonisjs.com/docs/4.1/response#_plaincookie

1 Like