fix(types): onAuthorization can return a string
This commit is contained in:
parent
15f5c60b27
commit
a41881744a
@ -30,7 +30,7 @@ interface CompleteDecodedToken {
|
||||
payload: any
|
||||
}
|
||||
|
||||
type SecretCallback = (decodedToken: CompleteDecodedToken) => Promise<string>
|
||||
type SecretCallback = (decodedToken: CompleteDecodedToken) => Promise<string> | string
|
||||
|
||||
export interface AuthorizeOptions {
|
||||
secret: string | SecretCallback
|
||||
|
Reference in New Issue
Block a user