Closed dev-sda1 closed 1 year ago
Hey there @dev-sda1, thanks for using passkit-generator
.
I guess you misread the API documentation: model
is supported only by PKPass.from
.
I guess that's the issue. I tried to keep the API similar (new PKPass
vs PKPass.from
), but they are different.
I suggest you read the documentation again and try with PKPass.from
if you want to read a model.
Let me know!
Yep, turns out that was the issue, thanks!
Running OS
macOS 13
Running Node Version
v.18.16.1
Description
Followed all the steps in the wiki to correctly generate certificates, and referenced the examples to correctly read the certificates when creating a pass, however it throws a
[Error [ValidationError]: "wwdr" is required]
. The validation check in PKPass.js indicate that the passed through certificate needs to be a string, however it is exactly that. Writing the WWDR certificate out to console in both the example and my own yield the exact same result, so I'm not too sure what's happening here.Expected behavior
To read the certificate strings, and generate the pass.
Full code:
Were you able to verify it by using (and changing) the examples?
No.
Other details