Skip to content

Include chainId in JWT audience field #215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

devin-ai-integration[bot]
Copy link
Contributor

Closes #210

This PR adds the chainId to the common audience field of JWT before returning it to the client and verifies it during authentication.

Changes

  • Added chainId to the audience field in the JWT claims in GetKey function
  • Added verification in verifyAuth to check that the chainId in the audience field matches the network's chainId
  • Updated the test to verify the audience field contains the chainId

Link to Devin run: https://app.devin.ai/sessions/5de0e8606d10474ba62b3d64d3da28f4
Requested by: [email protected]

Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

},
}

if txReceipt != nil {
Copy link
Member

Choose a reason for hiding this comment

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

Let move this to another PR. Don't touch this file in this PR. We will only handle auth stuff i n this pr

Copy link
Contributor Author

Closing due to inactivity for more than 7 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Include chainId in the authKey before returning to client.
1 participant