Cordova iOS plugin with pod fails to compile

After migrating my app from Cordova to Capacitor, compilation fails because of a custom plugin, because of this line:

#import <JWT/JWT.h>

It would work if I drop the JWT prefix

#import <JWT.h>

But this breaks the rest of the build phase, too since the Pod itself includes all its code using the prefix JWT.

How can I update some configuration to remove this error?