Skip to content

Revoke and Remove Tokens on Uninstall#1066

Open
n7studios wants to merge 15 commits intomainfrom
remove-revoke-tokens-uninstall
Open

Revoke and Remove Tokens on Uninstall#1066
n7studios wants to merge 15 commits intomainfrom
remove-revoke-tokens-uninstall

Conversation

@n7studios
Copy link
Copy Markdown
Contributor

Summary

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

  • Revokes the access and refresh tokens by calling the oauth/revoke endpoint
  • Removes the v3 API Key, v3 API Secret, v4 Access Token, v4 Refresh Token and v4 Token Expires settings from the database

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 8, 2026
@n7studios n7studios requested review from a team, ciccio-kit and noelherrick and removed request for a team April 8, 2026 14:14
@n7studios n7studios marked this pull request as ready for review April 8, 2026 14:15
@n7studios n7studios marked this pull request as draft April 9, 2026 04:23
This test results in Plugin deletion. If other tests exist in the same test-group, those would subsequently fail as there’s no Plugin to test.
@n7studios n7studios marked this pull request as ready for review April 9, 2026 05:34
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

@Kit Kit deleted a comment from github-actions bot Apr 9, 2026
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.

1 participant