1
0

update JwtPayload type, thanks @Le0Developer #61

This commit is contained in:
2024-01-21 00:06:50 +01:00
parent d7a6847206
commit 61a3a2ed50

View File

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