Replies: 1 comment 2 replies
-
Hi @vb7401, first of all thank you for using passkit-generator! This library is not studied at all to run on the client (e.g. browsers, except About signing the pass on the server, what's your idea about an architecture that would involve such elements? Should file's SHA-1 be calculated on the client or the server (which are the content of Also, splitting things is not that easy currently. It would probably require a whole package rewriting. You can see by yourself that is not a very easy thing to be accomplished, especially in short times, so I think a lot of things should be evalutated. Is there a particular reason for which you cannot setup a firebase cloud function or a serverless lambda or a cloudflare worker and use passkit-generator there? Let me know. |
Beta Was this translation helpful? Give feedback.
-
I would like to generate the pass on the client-side, and just have the server sign the manifest. This is so we can have private information in the pass that the server does not see (specifically, a unique cryptographic signature from an NFC card that should remain private to the user).
I tried removing the parts of PKPass that use Node.js things like
fs
in a personal fork (https://github.com/vb7401/passkit-generator), and just use the Buffer model for reading everything. However, when I try to import that fork I get an error saying thatModule not found: Can't resolve 'passkit-generator'
.Do you have any tips here?
Beta Was this translation helpful? Give feedback.
All reactions