Updated serialnumber generation in pkpasses of serverless example

This commit is contained in:
Alexander Cerutti
2021-12-18 19:07:28 +01:00
parent a62c9c18ca
commit 4b9d7e099b

View File

@@ -29,7 +29,8 @@ export async function pkpasses(event: ALBEvent) {
const pass = new PKPass({}, certificates, {
description: "Example Apple Wallet Pass",
passTypeIdentifier: "pass.com.passkitgenerator",
serialNumber: "nmyuxofgna",
// Be sure to issue different serialNumbers or you might incur into the bug explained above
serialNumber: `nmyuxofgna${Math.random()}`,
organizationName: `Test Organization ${Math.random()}`,
teamIdentifier: "F53WB8AE67",
foregroundColor: `rgb(${getRandomColorPart()}, ${getRandomColorPart()}, ${getRandomColorPart()})`,