diff --git a/packages/console/src/pages/JwtClaims/utils/config.tsx b/packages/console/src/pages/JwtClaims/utils/config.tsx index c5c37b935..798dbac8e 100644 --- a/packages/console/src/pages/JwtClaims/utils/config.tsx +++ b/packages/console/src/pages/JwtClaims/utils/config.tsx @@ -55,10 +55,12 @@ declare global { * This function is called to get custom claims for the JWT token. * * @param {${JwtCustomizerTypeDefinitionKey.ClientCredentialsPayload}} token -The JWT token. + * @param {undefined} data - Logto internal data placeholder that can be used to pass additional information (temporarily not used but should be kept for future use) + * @param {${JwtCustomizerTypeDefinitionKey.EnvironmentVariables}} envVariables - The environment variables. * * @returns The custom claims. */ - getCustomJwtClaims: (token: ${JwtCustomizerTypeDefinitionKey.ClientCredentialsPayload}, envVariables: ${JwtCustomizerTypeDefinitionKey.EnvironmentVariables}) => Promise; + getCustomJwtClaims: (token: ${JwtCustomizerTypeDefinitionKey.ClientCredentialsPayload}, data: undefined, envVariables: ${JwtCustomizerTypeDefinitionKey.EnvironmentVariables}) => Promise; } const exports: Exports; @@ -86,6 +88,7 @@ const defaultClientCredentialsJwtCustomizerCode = `/** * This function is called to get custom claims for the JWT token. * * @param {${JwtCustomizerTypeDefinitionKey.ClientCredentialsPayload}} token -The JWT token. +* @param {undefined} data - Logto internal data placeholder that can be used to pass additional information (temporarily not used but should be kept for future use) * @param {${JwtCustomizerTypeDefinitionKey.EnvironmentVariables}} [envVariables] - The environment variables. * * @returns The custom claims. @@ -172,7 +175,7 @@ export const environmentVariablesCodeExample = `exports.getCustomJwtClaims = asy Authorization: apiKey, } }); - + const data = await response.json(); return {