Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use revoke as logout #59

Open
tom-cichy-cityos opened this issue Mar 11, 2020 · 0 comments
Open

Use revoke as logout #59

tom-cichy-cityos opened this issue Mar 11, 2020 · 0 comments

Comments

@tom-cichy-cityos
Copy link

tom-cichy-cityos commented Mar 11, 2020

Can we please add filter support for the revoke function, ie:

if ( $tokens ) { foreach ( $tokens as $key => $token_data ) { if ( $token_data['uuid'] === $token_uuid ) { unset( $tokens[ $key ] ); update_user_meta( $token->data->user->id, 'jwt_data', $tokens ); **apply_filters( 'jwt_auth_token_revoke', $token );** return array( 'code' => 'jwt_auth_revoked_token', 'data' => array( 'status' => 200, ), ); } } }

or simple "apply_filters( 'jwt_auth_token_revoke', $token );" in
"class-simple-jwt-authentication-rest.php"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant