Skip to main content
Latest
variable defaultEncryptConfiguration
import { defaultEncryptConfiguration } from "https://deno.land/x/jwe_cookie_map@v1.0.1/mod.ts";

The default encryptConfiguration used by JWECookieConfiguration will set a protected header with proper parameters to match the automatic key pair generation.

Examples

Example 1

const newEncryptConfig: chainedEncryptJWTCall = (jwt) => defaultEncryptConfiguration(jwt).setIssuedAt();

type

(jwt: jose.EncryptJWT) => unknown