fix decode signature

This commit is contained in:
Jannik Keye
2018-09-24 22:09:51 +02:00
parent 1ce0d8b169
commit 831a4b4e41
+1 -5
View File
@@ -22,14 +22,10 @@ declare module "fastify" {
(token: string, options?: VerifyOptions): object | string;
}
interface DecodeFunction {
(token: string, options?: DecodeOptions): null | { [key: string]: any } | string;
}
interface jwt {
sign: SignFunction;
verify: VerifyFunction;
decode: DecodeFunction;
decode(token: string, options?: DecodeOptions): null | { [key: string]: any } | string;
secret: Secret;
}