Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

remove unnecessary dependencies, fix the bug that got the header of t… #135

Merged
merged 2 commits into from
Feb 16, 2024

Conversation

Parisa68
Copy link
Collaborator

…oken instead of the payload

Describe the pull request:

  • Bug fix
  • Functional change
  • New feature
  • Unit/integration tests
  • Code cleanup
  • Build system change
  • Documentation change

Pull request long description:

Related issues:

Additional information:

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the variable names be updated here? Are we picking a body of the token by purpose and process it in variables with names referring to Header ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No varibale names are ok. before changing libraries the code used getClaims() on the JWT(whole of it) and the result contained all the claims in the token. then after replacing the new code by mistake the first part of the token was decoded which is the header not the payload that has the claims (in this case "sub" was the part that gave null pointer exception)

Copy link
Contributor

@kjellp kjellp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Parisa68 Parisa68 merged commit 2041c6a into master Feb 16, 2024
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants