diff --git a/lib/utils/token/getClaim.ts b/lib/utils/token/getClaim.ts index 28a6204..9ccd418 100644 --- a/lib/utils/token/getClaim.ts +++ b/lib/utils/token/getClaim.ts @@ -5,9 +5,9 @@ import { getClaims } from "./getClaims"; * * @param keyName key to get from the token * @param {("accessToken"|"idToken")} [tokenType="accessToken"] - Type of token to get claims from - * @returns { Promise } + * @returns { Promise<{ name: keyof T; value: string | number | string[] | { id: string; name: string }[] } | null> } */ -export const getClaim = async ( +export const getClaim = async ( keyName: keyof T, tokenType: "accessToken" | "idToken" = "accessToken", ): Promise<{