diff options
Diffstat (limited to 'src/tools/jwt-parser/jwt-parser.service.ts')
-rw-r--r-- | src/tools/jwt-parser/jwt-parser.service.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/jwt-parser/jwt-parser.service.ts b/src/tools/jwt-parser/jwt-parser.service.ts index cc39145..543f4c8 100644 --- a/src/tools/jwt-parser/jwt-parser.service.ts +++ b/src/tools/jwt-parser/jwt-parser.service.ts @@ -19,7 +19,7 @@ function decodeJwt({ jwt }: { jwt: string }) { function parseClaims({ claim, value }: { claim: string; value: unknown }) { const claimDescription = CLAIM_DESCRIPTIONS[claim]; - const formattedValue = _.isPlainObject(value) ? JSON.stringify(value, null, 3) : _.toString(value); + const formattedValue = _.isPlainObject(value) || _.isArray(value) ? JSON.stringify(value, null, 3) : _.toString(value); const friendlyValue = getFriendlyValue({ claim, value }); return { |