update JwtPayload type, thanks @Le0Developer #61
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user