Open
Conversation
|
Preview URL https://openidconnect-fs9t1xsv3-okta.vercel.app |
|
Preview URL https://openidconnect-248ads2fv-okta.vercel.app |
|
Preview URL https://openidconnect-4lhmuu64a-okta.vercel.app |
|
Preview URL https://openidconnect-6hod1qmoj-okta.vercel.app |
Sambego
reviewed
Mar 4, 2026
| <Codeblock | ||
| title="Decoded Token Payload" | ||
| type="json" | ||
| json={JSON.parse(JSON_EXAMPLE)} |
Contributor
There was a problem hiding this comment.
You parse the JSON to then stringify it again on line 76 of src/features/debugger/components/codeblock/codeblock.component.tsx
Contributor
There was a problem hiding this comment.
The type also expect a JSON string, not a parsed object
| styles.code_block, | ||
| type === "token" && styles.vertical_scroll_container, | ||
| type === "request" && styles.horizontal_scroll_container | ||
| type === "token" || type === "json" && styles.vertical_scroll_container, |
Contributor
There was a problem hiding this comment.
Add parentheses around the ||, eg
(type === "token" || type === "json") && styles.vertical_scroll_container,
(type === "request" || type === "json") && styles.horizontal_scroll_container,
&& has precedence, otherwise it would evaluate as type === "token" || (type === "json" && styles...)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
By submitting a PR to this repository, you agree to the terms within the Auth0 Code of Conduct. Please see the contributing guidelines for how to create and submit a high-quality PR for this repo.
Description
The following PR adds the step four component, which shows the decoded token payload. The changes include:
Screenshots
Desktop
Mobile
Desktop
Mobile
References
Link to Figma design
Testing
Checklist