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
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>
getAll(options?: CookieStoreGetOptions): Promise<CookieList>
removeEventListener(...args: Parameters<CookieStore["removeEventListener"]>): void
set(name: string, value: string): Promise<void>
set(options: CookieInit): Promise<void>
Static Methods
deriveCryptoKey(opts: DeriveOptions): Promise<CryptoKey>
A helper function to derive a crypto key from a passphrase.