Skip to main content
Module

x/signed_cookie_store/index.ts>SignedCookieStore

A CookieStore implementation that transparently signs cookies via Web Cryptography API
Latest
class SignedCookieStore
implements CookieStore
import { SignedCookieStore } from "https://deno.land/x/signed_cookie_store@v0.3.0-pre.8/index.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.