From de9a119128f56488dca6dca27b0a83726a9f387c Mon Sep 17 00:00:00 2001 From: Darcy Ye Date: Thu, 21 Mar 2024 23:16:23 +0800 Subject: [PATCH] chore: fix type --- .../console/src/pages/JwtClaims/utils/config.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/console/src/pages/JwtClaims/utils/config.tsx b/packages/console/src/pages/JwtClaims/utils/config.tsx index 06f199ccd..039a56c42 100644 --- a/packages/console/src/pages/JwtClaims/utils/config.tsx +++ b/packages/console/src/pages/JwtClaims/utils/config.tsx @@ -30,8 +30,8 @@ declare global { /** * This function is called to get custom claims for the JWT token. * - * @param {${JwtCustomizerTypeDefinitionKey.AccessTokenPayload}} token -The JWT token. - * @param {Data} data - Logto internal data that can be used to pass additional information + * @param {${JwtCustomizerTypeDefinitionKey.AccessTokenPayload}} token - The JWT token. + * @param {Data} data - Logto internal data that can be used to pass additional information. * @param {${JwtCustomizerTypeDefinitionKey.JwtCustomizerUserContext}} data.user - The user info associated with the token. * @param {${JwtCustomizerTypeDefinitionKey.EnvironmentVariables}} envVariables - The environment variables. * @@ -54,8 +54,8 @@ 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 (undefined for M2M accesstoken) + * @param {${JwtCustomizerTypeDefinitionKey.ClientCredentialsPayload}} token - The JWT token. + * @param {undefined} data - Logto internal data placeholder that can be used to pass additional information (undefined for M2M accesstoken). * @param {${JwtCustomizerTypeDefinitionKey.EnvironmentVariables}} envVariables - The environment variables. * * @returns The custom claims. @@ -72,8 +72,8 @@ export { exports as default }; const defaultAccessTokenJwtCustomizerCode = `/** * This function is called to get custom claims for the JWT token. * -* @param {${JwtCustomizerTypeDefinitionKey.AccessTokenPayload}} token -The JWT token. -* @param {Data} data - Logto internal data that can be used to pass additional information +* @param {${JwtCustomizerTypeDefinitionKey.AccessTokenPayload}} token - The JWT token. +* @param {Data} data - Logto internal data that can be used to pass additional information. * @param {${JwtCustomizerTypeDefinitionKey.JwtCustomizerUserContext}} data.user - The user info associated with the token. * @param {${JwtCustomizerTypeDefinitionKey.EnvironmentVariables}} [envVariables] - The environment variables. * @@ -87,8 +87,8 @@ exports.getCustomJwtClaims = async (token, data) => { 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 (undefined for M2M accesstoken) +* @param {${JwtCustomizerTypeDefinitionKey.ClientCredentialsPayload}} token - The JWT token. +* @param {undefined} data - Logto internal data placeholder that can be used to pass additional information (undefined for M2M accesstoken). * @param {${JwtCustomizerTypeDefinitionKey.EnvironmentVariables}} [envVariables] - The environment variables. * * @returns The custom claims.