Skip to content

Commit

Permalink
feat: fix roles type in JwtPayload (#49)
Browse files Browse the repository at this point in the history
* feat: fix role error in jwtpayload

* fix: remove log for test
  • Loading branch information
dacongda authored May 7, 2024
1 parent 4397c20 commit c864899
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ export interface Account {
accessToken: string
}

export interface Role {
owner: string,
name: string,
createdTime: string,
displayName: string,
description: string,
roles: string[],
domains: string[]
isEnabled: boolean
}

export interface JwtPayload {
owner: string;
name: string;
Expand Down Expand Up @@ -114,7 +125,7 @@ export interface JwtPayload {
mfaEmailEnabled: boolean;
ldap: string;
properties: Record<string, unknown>;
roles: string[];
roles: Role[];
permissions: Permission[];
groups: string[];
lastSigninWrongTime: string;
Expand Down

0 comments on commit c864899

Please sign in to comment.