Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide optional headers #28

Open
jonjardine opened this issue May 31, 2019 · 1 comment
Open

Provide optional headers #28

jonjardine opened this issue May 31, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@jonjardine
Copy link

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?

@cdoco
Copy link
Owner

cdoco commented Jun 2, 2019

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

@cdoco cdoco added the enhancement New feature or request label Jun 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants