Skip to content
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

return application json encoded authorization response #39

Open
wants to merge 4 commits into
base: feat/add-req-obj-signing-alg-setter-wallet-metadata
Choose a base branch
from

Conversation

Ryanmtate
Copy link
Contributor

No description provided.

@Ryanmtate Ryanmtate force-pushed the fix/update-authorization-response-encoding branch 2 times, most recently from 2509f66 to f4c18a0 Compare October 31, 2024 20:03
@Ryanmtate Ryanmtate force-pushed the fix/update-authorization-response-encoding branch from f4c18a0 to cf66d93 Compare October 31, 2024 20:04
"failed to encode presentation_submission as 'application/x-www-form-urlencoded'",
)?;

Ok(encoded)
Copy link
Contributor

Choose a reason for hiding this comment

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

It works so I'm not going to block it but:

  • there is no reason for the serialization to fail, so you can safely unwrap instead of returning a Result
  • you could use a custom struct instead of a HashMap to avoid memory allocations.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

commit ad3974c removes the hash map and uses a custom struct here instead.

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.

3 participants