mirror of
https://github.com/Thream/socketio-jwt.git
synced 2024-07-21 09:38:31 +02:00
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
|
||||
|
Loading…
Reference in New Issue
Block a user