Skip to content

Conversation

matthiasgeihs
Copy link
Contributor

@matthiasgeihs matthiasgeihs commented Aug 25, 2025

Explanation

Add a "triggerAuthTokenRefresh" method to the SubscriptionController, which allows to trigger a refresh of the access token, for example, after the subscription status has changed.

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed, highlighting breaking changes as necessary
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

@matthiasgeihs matthiasgeihs force-pushed the mg/subscription-controller/refetch-token branch from d1da73f to 769b77c Compare August 25, 2025 14:44
@matthiasgeihs matthiasgeihs changed the base branch from main to feat/shield-subscription-controller August 25, 2025 14:45
@matthiasgeihs matthiasgeihs marked this pull request as ready for review August 25, 2025 14:45
@matthiasgeihs matthiasgeihs requested review from a team as code owners August 25, 2025 14:45
cursor[bot]

This comment was marked as outdated.

@matthiasgeihs matthiasgeihs force-pushed the mg/subscription-controller/refetch-token branch from 4b2e43e to 7640869 Compare August 29, 2025 11:44
Base automatically changed from feat/shield-subscription-controller to main August 29, 2025 14:22
@matthiasgeihs matthiasgeihs force-pushed the mg/subscription-controller/refetch-token branch from 7640869 to 7e994de Compare September 1, 2025 06:56
@chaitanyapotti chaitanyapotti added the area-shield Transaction Shield label Sep 2, 2025
If we perform a sign out on the authentication controller, then the next
access token request will trigger fetch a fresh token.
@matthiasgeihs matthiasgeihs force-pushed the mg/subscription-controller/refetch-token branch from 7e994de to b6c58e9 Compare September 9, 2025 09:59
@matthiasgeihs matthiasgeihs merged commit 7a9e620 into main Sep 9, 2025
241 checks passed
@matthiasgeihs matthiasgeihs deleted the mg/subscription-controller/refetch-token branch September 9, 2025 10:11
GuillaumeRx pushed a commit that referenced this pull request Sep 9, 2025
Add a "triggerAuthTokenRefresh" method to the SubscriptionController,
which allows to trigger a refresh of the access token, for example,
after the subscription status has changed.

<!--
Thanks for your contribution! Take a moment to answer these questions so
that reviewers have the information they need to properly understand
your changes:

* What is the current state of things and why does it need to change?
* What is the solution your changes offer and how does it work?
* Are there any changes whose purpose might not obvious to those
unfamiliar with the domain?
* If your primary goal was to update one package but you found you had
to update another one along the way, why did you do so?
* If you had to upgrade a dependency, why did you do so?
-->

<!--
Are there any issues that this pull request is tied to?
Are there other links that reviewers should consult to understand these
changes better?
Are there client or consumer pull requests to adopt any breaking
changes?

For example:

* Fixes #12345
* Related to #67890
-->

- [x] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [x] I've communicated my changes to consumers by [updating changelogs
for packages I've
changed](https://github.com/MetaMask/core/tree/main/docs/contributing.md#updating-changelogs),
highlighting breaking changes as necessary
- [ ] I've prepared draft pull requests for clients and consumer
packages to resolve any breaking changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants