function getPrivateKeyFromSession
getPrivateKeyFromSession(
sessionToken: string,
wrappedDataKey: WrappedKey,
wrappedPrivateKey: KeyEncrypted,
): Promise<CryptoKey>

Derive the private key from session credentials Used to decrypt attendee PII in admin views Results are cached per session token for 10 seconds

Parameters

sessionToken: string
wrappedDataKey: WrappedKey
wrappedPrivateKey: KeyEncrypted

Return Type

Promise<CryptoKey>

Usage

import { getPrivateKeyFromSession } from "doc.ts";