Commit 45f7590 1 parent e84085b commit 45f7590 Copy full SHA for 45f7590
File tree 2 files changed +2
-0
lines changed
2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { getClaims } from "./getClaims";
4
4
/**
5
5
*
6
6
* @param keyName key to get from the token
7
+ * @param {("accessToken"|"idToken") } [tokenType="accessToken"] - Type of token to get claims from
7
8
* @returns { Promise<string | number | string[] | null> }
8
9
*/
9
10
export const getClaim = async < T = JWTDecoded , V = string | number | string [ ] > (
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { getDecodedToken } from "./getDecodedToken";
3
3
4
4
/**
5
5
* get all claims from the token
6
+ * @param {("accessToken"|"idToken") } [tokenType="accessToken"] - Type of token to get claims from
6
7
* @returns { Promise<T | null> }
7
8
*/
8
9
export const getClaims = async < T = JWTDecoded > (
You can’t perform that action at this time.
0 commit comments