Skip to main content

Token Events

Authentication Actions

jwt_auth_token_generated

Fires when a new JWT token is generated after successful authentication.

jwt_auth_token_refreshed

Fires when a token is refreshed using a refresh token.

jwt_auth_token_validated

Fires when a token is successfully validated.

Token Management

jwt_auth_token_revoked

Fires when a token is revoked.

jwt_auth_token_deleted

Fires when a token is deleted.

Analytics Events

jwt_auth_analytics_aggregated

Fires when analytics data is aggregated.

jwt_auth_analytics_consolidated

Fires when analytics data is consolidated.

jwt_auth_analytics_cache_cleared

Fires when analytics cache is cleared.

jwt_auth_analytics_cleanup_completed

Fires when analytics cleanup is completed.

Error Events

jwt_auth_error

Fires when various authentication errors occur.
All actions follow WordPress coding standards and can be used with the standard add_action() function. The examples above show practical implementations for each action.