Hey @dankkomcg , thanks for asking.
There’s jwt_auth_payload
filter you can use. You can find it in the Description tab in the plugin’s page. You will find the detail there.
Example of usage would be:
/**
* Modify the payload/ token's data before being encoded & signed.
*
* @param array $payload The default payload
* @param WP_User $user The authenticated user.
*
* @return array The payload/ token's data.
*/
add_filter(
'jwt_auth_payload',
function ( $payload, $user ) {
// Modify the payload here.
return $payload;
},
10,
2
);
Let me know if that works for you ??
Best,
Bagus