We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7003915 + 378be4f commit 62d3e0fCopy full SHA for 62d3e0f
src/index.ts
@@ -130,7 +130,7 @@ JWTOption<Name, Schema>) => {
130
}
131
}).decorate(name as Name extends string ? Name : 'jwt', {
132
sign: (
133
- morePayload: UnwrapSchema<Schema, Record<string, string>> &
+ morePayload: UnwrapSchema<Schema, Record<string, string | number>> &
134
JWTPayloadSpec
135
) => {
136
let jwt = new SignJWT({
@@ -151,7 +151,7 @@ JWTOption<Name, Schema>) => {
151
verify: async (
152
jwt?: string
153
): Promise<
154
- | (UnwrapSchema<Schema, Record<string, string>> & JWTPayloadSpec)
+ | (UnwrapSchema<Schema, Record<string, string | number>> & JWTPayloadSpec)
155
| false
156
> => {
157
if (!jwt) return false
0 commit comments