From 1009a9b8d54ddb8bf78c25c6936cbcf35e9142f0 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Wed, 10 Aug 2022 11:08:14 +0200 Subject: [PATCH] catch key error --- lib/Authority.ts | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Authority.ts b/lib/Authority.ts index d6e303b..4e50987 100644 --- a/lib/Authority.ts +++ b/lib/Authority.ts @@ -53,7 +53,7 @@ class Authority { key, (info) => { try { - return keystore.get_key (info.iat / 1000, info.iss); + return await keystore.get_key (info.iat / 1000, info.iss); } catch { return ''; diff --git a/package.json b/package.json index b9e80f7..713c4fd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sapphirecode/auth-server-helper", - "version": "3.3.1", + "version": "3.3.2", "main": "dist/lib/index.js", "author": { "name": "Timo Hocker",