Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/shed/signed-cookie-store.ts>SignedCookieStore

All Worker Tools under a single roof
Latest
class SignedCookieStore
implements CookieStore
import { SignedCookieStore } from "https://deno.land/x/shed@v0.1.0-pre.10/signed-cookie-store.ts";

Signed Cookie Store

A partial implementation of the Cookie Store API that transparently signs and verifies cookies via the Web Cryptography API.

This is likely only useful in server-side implementations, but written in a platform-agnostic way.

Constructors

new
SignedCookieStore()

Methods

addEventListener(...args: Parameters<CookieStore["addEventListener"]>): void
delete(name: string): Promise<void>
delete(options: CookieStoreDeleteOptions): Promise<void>
dispatchEvent(event: Event): boolean
get(name?: string): Promise<CookieListItem | null>
get(options?: CookieStoreGetOptions): Promise<CookieListItem | null>
getAll(name?: string): Promise<CookieList>
removeEventListener(...args: Parameters<CookieStore["removeEventListener"]>): void
set(name: string, value: string): Promise<void>
set(options: CookieInit): Promise<void>

Static Methods

A helper function to derive a crypto key from a passphrase.