class EncryptedCookieStore
implements CookieStore
Re-export
import { EncryptedCookieStore } from "https://deno.land/x/shed@v0.1.0-pre.10/index.ts";
Encrypted Cookie Store
A partial implementation of the Cookie Store API that transparently encrypts and decrypts cookies via AES-GCM.
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