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