Skip to content

Commit

Permalink
Merge pull request #309 from logto-io/charles-add-user-info-props-to-…
Browse files Browse the repository at this point in the history
…id-token-claims-type

refactor(js): add userinfo props to id token claims type
  • Loading branch information
charIeszhao authored Jun 21, 2022
2 parents 522e3c1 + 9cb71ee commit 53c5eed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/js/src/utils/id-token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ const IdTokenClaimsSchema = s.type({
exp: s.number(),
iat: s.number(),
at_hash: s.optional(s.string()),
name: s.optional(s.string()),
username: s.optional(s.string()),
avatar: s.optional(s.string()),
role_names: s.optional(s.array(s.string())),
});

export type IdTokenClaims = s.Infer<typeof IdTokenClaimsSchema>;
Expand Down

0 comments on commit 53c5eed

Please sign in to comment.