From b64d6afeab56c1d41aabdec72f570cf829a5181b Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 10 Mar 2023 13:58:43 +0100 Subject: util.jwt: Import definition of key from util.crypto Turns out we had a definition of that already --- teal-src/util/jwt.d.tl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'teal-src') diff --git a/teal-src/util/jwt.d.tl b/teal-src/util/jwt.d.tl index ec501bfa..929d7419 100644 --- a/teal-src/util/jwt.d.tl +++ b/teal-src/util/jwt.d.tl @@ -1,3 +1,4 @@ +local crypto = require "util.crypto" local record jwtlib enum algorithm "HS256" @@ -19,13 +20,10 @@ local record jwtlib "rsaEncryption" "id-ecPublicKey" end - record key_t - get_type : function (key_t) : key_type - end record algorithm_t sign : signer_t verify : verifier_t - load_key : function (key : string) : key_t + load_key : function (key : string) : crypto.key end init : function (algorithm, private_key : string, public_key : string, table) : signer_t, verifier_t new_signer : function (algorithm, string, table) : signer_t -- cgit v1.2.3