From a41881744a2cb15f20487ac03996c8554e64862a Mon Sep 17 00:00:00 2001 From: Divlo Date: Fri, 23 Jul 2021 22:54:07 +0200 Subject: [PATCH] fix(types): onAuthorization can return a string --- src/authorize.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authorize.ts b/src/authorize.ts index 4ebf68e..c677f9f 100644 --- a/src/authorize.ts +++ b/src/authorize.ts @@ -30,7 +30,7 @@ interface CompleteDecodedToken { payload: any } -type SecretCallback = (decodedToken: CompleteDecodedToken) => Promise +type SecretCallback = (decodedToken: CompleteDecodedToken) => Promise | string export interface AuthorizeOptions { secret: string | SecretCallback