Skip to main content
Module

x/bwt/mod.ts>createParse

Better Web Token - an iteration of web tokens with a bunch of improvements
Latest
function createParse
import { createParse } from "https://deno.land/x/bwt@v0.6.0/mod.ts";

Creates a BWT parse function.

ownSecretKey must be a buffer of 32 bytes. peerPublicKeys must be a non-empty peer public key collection to be used for verification of incoming tokens.

Throws TypeErrors if any of its arguments are invalid.

Parameters

ownSecretKey: Uint8Array
...peerPublicKeys: PeerPublicKey[]