Skip to content

Serving a pkpass directly from backend #150

Discussion options

You must be logged in to vote

I don't have a code for that, but I guess you can use response parameter to set the Content-Type header (note that passkit-generator offers a .mimeType property to be used, so you won't use the wrong one), set the status code and use .send() and pass to it the getAsBuffer result.

Somehow like you can see it here: https://firebase.google.com/docs/functions/http-events?hl=en&gen=2nd#terminate_http_functions

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@Saim-Khan1
Comment options

@alexandercerutti
Comment options

Answer selected by Saim-Khan1
@Saim-Khan1
Comment options

@Saim-Khan1
Comment options

@alexandercerutti
Comment options

@alexandercerutti
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants