Skip to content

Commit

Permalink
types: define generic for user
Browse files Browse the repository at this point in the history
  • Loading branch information
peterphanouvong committed Aug 25, 2024
1 parent 99d8f5d commit dcf8b90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ export type KindeState = {
defaultValue: string
) => string | null | undefined;
getToken: () => string | null;
getUser: () => KindeUser<{}> | null;
getUser: () => KindeUser<Record<string, string>> | null;
getUserOrganizations: () => KindeOrganizations | null;
refreshData: () => Promise<void>;
};
Expand All @@ -352,7 +352,7 @@ export type KindeSetupResponse = {
accessToken: KindeAccessToken;
accessTokenEncoded: string;
idToken: KindeIdToken;
user: KindeUser<{}>;
user: KindeUser<Record<string, string>>;
permissions: KindePermissions;
organization: KindeOrganization;
featureFlags: Record<string, KindeFlagRaw>;
Expand Down

0 comments on commit dcf8b90

Please sign in to comment.