php-jwt icon indicating copy to clipboard operation
php-jwt copied to clipboard

Provide optional headers

Open jonjardine opened this issue 6 years ago • 1 comments

I'm trying to use this extension to generate tokens for the Apple Push Notification service (APNs), however Apple requires a custom header with a 'kid' parameter, for an authorisation identifier code for the user's developer account. Unless I'm missing something (and I've looked at the c code) I can't see an ability to customise the headers.

Any chance of adding an optional additional_headers parameter to the encode function?

jonjardine avatar May 31 '19 11:05 jonjardine

That's a good suggestion. I'll consider adding this feature in the next version.

cdoco avatar Jun 02 '19 15:06 cdoco