feat(thegraph): serialize and deserialize subscription extra auth token claims #65
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.
This follow-up PR extends the Subscriptions Auth token with support for serialization and deserialization of the "extra" claims:
allowed_domains
,allowed_deployments
, etc.).chain_id
field intochain
following @Theodus suggestion in the previous PR (feat(thegraph): add support for subscription payments ticket #60 (comment)).user()
method.Note
The naming of the
chain_id
field is an API-breaking change. Upgrading the dependency will require changes in the code using this crate.claims.chain()
orclaims.chain_id()
instead of accessing theclaims.chain
field directly.This is a follow-up PR of #60