Skip to main content
Module

x/oak/deps.ts>KeyStack#verify

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
method KeyStack.prototype.verify
import { KeyStack } from "https://deno.land/x/oak@v12.5.0/deps.ts";

Given data and a digest, verify that one of the keys provided the constructor was used to generate the digest. Returns true if one of the keys was used, otherwise false.

Parameters

data: Data
digest: string

Returns

Promise<boolean>