Function
clearCookie
(
reply: FastifyReply,
name: string,
options?: CookieSerializeOptions,
)
Source from the content-addressed store, hash-verified
| 22 | }); |
| 23 | } |
| 24 | export function clearCookie( |
| 25 | reply: FastifyReply, |
| 26 | name: string, |
| 27 | options?: CookieSerializeOptions, |
| 28 | ) { |
| 29 | void reply.clearCookie(name, { |
| 30 | secure: !process.env.DEV, |
| 31 | domain: process.env.HOST, |
| 32 | path: '/', |
| 33 | sameSite: 'strict', |
| 34 | httpOnly: true, |
| 35 | |
| 36 | ...options, |
| 37 | }); |
| 38 | } |
| 39 | |
| 40 | export function setCookies(input: { |
| 41 | reply: FastifyReply; |
Tested by
no test coverage detected