Skip to content

Revoke and Remove Tokens on Uninstall#113

Merged
n7studios merged 3 commits intomainfrom
revoke-remove-tokens-uninstall
Apr 13, 2026
Merged

Revoke and Remove Tokens on Uninstall#113
n7studios merged 3 commits intomainfrom
revoke-remove-tokens-uninstall

Conversation

@n7studios
Copy link
Copy Markdown
Contributor

Summary

When the user uninstalls the Kit for MemberMouse Plugin from their WordPress Site:

  • Revokes the access and refresh tokens by calling the oauth/revoke endpoint
  • Removes the v3 API Key, v4 Access Token, v4 Refresh Token and v4 Token Expires settings from the database (this Plugin never stored or used a v3 API Secret).

https://developer.wordpress.org/plugins/plugin-basics/uninstall-methods/ defines "Uninstall" as:

A plugin is considered uninstalled if a user has deactivated the plugin, and then clicks the delete link within the WordPress Admin.

Testing

  • testPluginDeletionRevokesAndRemovesTokens : test that uninstalling (deleting) the Plugin revokes and removes tokens.

Checklist

@n7studios n7studios self-assigned this Apr 10, 2026
@n7studios n7studios requested review from a team, ciccio-kit and noelherrick and removed request for a team April 10, 2026 03:04
@n7studios n7studios marked this pull request as ready for review April 10, 2026 03:04
Copy link
Copy Markdown

@ciccio-kit ciccio-kit left a comment

Choose a reason for hiding this comment

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

LGTM ✅

Comment thread uninstall.php
@n7studios n7studios merged commit 974235e into main Apr 13, 2026
61 of 64 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants