Default header 'typ' breaking Apple JWT requests
Author: colinfermCreated Aug 19, 2024Updated Aug 19, 2024
In namespace Lcobucci\JWT\Token\Builder:23, there is the line:
private array $headers = ['typ' => 'JWT', 'alg' => null];
The header typ => JWT is breaking requests with Apple JWT requests (such as APNS or Apple Books API requests).
Can you either (a) make Builder non-final so it can be subclassed and this variable can be easily overwritten or (b) can you remove this header from the default array?
Source: lcobucci/jwt