Skip to main content

Function: verify

verify(token, jwKey, alg): Promise<boolean>

Parameters

NameType
tokenstring
jwKeyJsonWebKey
algAlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams | AesKeyAlgorithm

Returns

Promise<boolean>

Defined in

onekijs/packages/onekijs-framework/src/utils/crypt.ts:111