Functions for managing HTTP cookies in web applications.
Scanned 9/12/2026
Install to Claude Code
npx -y skills add ali-master/skills --skill orpc-cookie --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Orpc Cookie?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/ali-master-orpc-cookie)More formats (shields.io, HTML) on the badges page.
---
name: oRPC Cookie Helpers
description: Functions for managing HTTP cookies in web applications.
license: MIT
metadata:
author: Ali Torki
homepage: https://github.com/ali-master
version: "1.0.0"
---
# Cookie Helpers
The Cookie helpers provide functions to set and get HTTP cookies.
```ts
import { deleteCookie, getCookie, setCookie } from '@orpc/server/helpers'
const reqHeaders = new Headers()
const resHeaders = new Headers()
setCookie(resHeaders, 'sessionId', 'abc123', {
secure: true,
maxAge: 3600
})
deleteCookie(resHeaders, 'sessionId')
const sessionId = getCookie(reqHeaders, 'sessionId')
```
> Both helpers accept `undefined` as headers for seamless integration with [Request Headers Plugin](/docs/plugins/request-headers) or [Response Headers Plugin](/docs/plugins/response-headers).
## Security with Signing and Encryption
Combine cookies with [signing](/docs/helpers/signing) or [encryption](/docs/helpers/encryption):
```ts
import { getCookie, setCookie, sign, unsign } from '@orpc/server/helpers'
const secret = 'your-secret-key'
setCookie(resHeaders, 'sessionId', await sign('abc123', secret), {
httpOnly: true,
secure: true,
maxAge: 3600
})
const signedSessionId = await unsign(getCookie(reqHeaders, 'sessionId'), secret)
```
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Use this skill when adding authentication, handling user input, working with secrets, creating API endpoints, or implementing payment/sensitive features. Provides comprehensive security checklist and patterns.
Java Spring Boot 服务中关于身份验证/授权、验证、CSRF、密钥、标头、速率限制和依赖安全的 Spring Security 最佳实践。
Create, comment on, update, and list Paperclip tasks from Hermes using scoped Paperclip API credentials.
Write a short, colloquial summary for a Paperclip summary slot: open with the 1–3 specific, concrete actions the reader needs to take right now to unblock the work, then a brief plain-language status, streaming progress as it works.
Complete security architecture overhaul for claude-flow v3. Addresses critical CVEs (CVE-1, CVE-2, CVE-3) and implements secure-by-default patterns. Use for security-first v3 implementation.