Skip to content
Back to skills

Orpc Cookie

ASecurity

Functions for managing HTTP cookies in web applications.

  • 8 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 12, 2026
securitygitsecurity

Security analysis

A100/100

Scanned September 12, 2026

npx -y skills add ali-master/skills --skill orpc-cookie --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Orpc Cookie?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Orpc Cookie
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ali-master-orpc-cookie/badge)](https://www.skillsdirectory.com/skills/ali-master-orpc-cookie)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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)
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.