Skip to content

Commit

Permalink
fix: fixed jwt payload type
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis3797 committed Jun 12, 2024
1 parent 2275063 commit fe9c773
Showing 1 changed file with 23 additions and 14 deletions.
37 changes: 23 additions & 14 deletions apps/api/src/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,23 +88,32 @@ export type GIF = {
};

export interface JwtPayload {
sub: string; // assuming 'sub' is the user ID
acr: string;
at_hash: string;
aud: string;
auth_time: number;
azp: string;
email: string;
email_verified: boolean;
exp: number;
family_name: string;
given_name: string;
iat: number;
iss: string;
auth_time: number;
jti: string;
name: string;
preferred_username: string;
iss: string;
aud: string;
sub: string;
typ: string;
azp: string;
session_state: string;
acr: string;
"allowed-origins": string[];
realm_access: {
roles: string[];
};
resource_access: {
account: {
roles: string[];
};
};
scope: string;
sid: string;
typ: string;
email_verified: boolean;
name: string;
preferred_username: string;
given_name: string;
family_name: string;
email: string;
}

0 comments on commit fe9c773

Please sign in to comment.