Open sarah-geara opened 4 years ago
Is there a way or a reverse way to know from the jwt token returned the userId of the user loggedIn ?
You must use a filter to extend the plugin:
add_filter('jwt_auth_token_before_dispatch', function( $data ){ $data['user_id'] = get_current_user_id(); return $data; } ,10,1);
Is there a way or a reverse way to know from the jwt token returned the userId of the user loggedIn ?