Skip to content

Commit 45f7590

Browse files
committed
docs: update JSDocs
1 parent e84085b commit 45f7590

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/utils/token/getClaim.ts

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { getClaims } from "./getClaims";
44
/**
55
*
66
* @param keyName key to get from the token
7+
* @param {("accessToken"|"idToken")} [tokenType="accessToken"] - Type of token to get claims from
78
* @returns { Promise<string | number | string[] | null> }
89
*/
910
export const getClaim = async <T = JWTDecoded, V = string | number | string[]>(

lib/utils/token/getClaims.ts

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { getDecodedToken } from "./getDecodedToken";
33

44
/**
55
* get all claims from the token
6+
* @param {("accessToken"|"idToken")} [tokenType="accessToken"] - Type of token to get claims from
67
* @returns { Promise<T | null> }
78
*/
89
export const getClaims = async <T = JWTDecoded>(

0 commit comments

Comments
 (0)