1
0

update JwtPayload type, thanks @Le0Developer #61

This commit is contained in:
2024-01-21 00:06:50 +01:00
parent a7ceb1d485
commit 1fef006cbf

View File

@@ -46,7 +46,7 @@ export type JwtHeader<T = {}> = {
* @prop {string} [iat] Issued At
* @prop {string} [jti] JWT ID
*/
export type JwtPayload<T = {}> = {
export type JwtPayload<T = { [key: string]: any }> = {
/** Issuer */
iss?: string
@@ -67,8 +67,6 @@ export type JwtPayload<T = {}> = {
/** JWT ID */
jti?: string
[key: string]: any
} & T
/**