A WordPress plugin that provides Headless login and authentication for WPGraphQL, supporting traditional passwords, OAuth2/OpenID Connect, JWT, and more.
GNU General Public License v3.0
72
stars
11
forks
source link
fix: use refresh_user_secret() when revoking on backend #61
What
Use
TokenManager::refresh_user_secret()
when revoking secrets on the backend.Why
Since
TokenManager::revoke_user_secret()
leaves no secret set, this would cause a fatal GraphQL error, instead of a request for reauthorization.How
TokenManager::refresh_user_secret()
when revoking secrets on the backend to preventUserError
s for invalid secrets.Testing Instructions
Additional Info
Checklist: