adonisjs / http-server

AdonisJS HTTP Server along with its Router
https://docs.adonisjs.com/guides/http
MIT License
109 stars 27 forks source link

Allow to create cookies that are not base64 encoded #63

Closed RomainLanz closed 2 years ago

RomainLanz commented 2 years ago

Hey! 👋🏻

This PR adds the possibility to create plainCookie without encoding them to base64 before saving them.

response.plainCookie('name', 'romain', { encode: false })

This can be useful when you are creating the cookie for third-party services that do not expect base64 cookies.

thetutlage commented 2 years ago

Ohh, no idea how this one got skipped. Sorry :)

RomainLanz commented 2 years ago

haha no worries 👍🏻