mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 19:25:23 +00:00
Updated serialnumber generation in pkpasses of serverless example
This commit is contained in:
@@ -29,7 +29,8 @@ export async function pkpasses(event: ALBEvent) {
|
|||||||
const pass = new PKPass({}, certificates, {
|
const pass = new PKPass({}, certificates, {
|
||||||
description: "Example Apple Wallet Pass",
|
description: "Example Apple Wallet Pass",
|
||||||
passTypeIdentifier: "pass.com.passkitgenerator",
|
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()}`,
|
organizationName: `Test Organization ${Math.random()}`,
|
||||||
teamIdentifier: "F53WB8AE67",
|
teamIdentifier: "F53WB8AE67",
|
||||||
foregroundColor: `rgb(${getRandomColorPart()}, ${getRandomColorPart()}, ${getRandomColorPart()})`,
|
foregroundColor: `rgb(${getRandomColorPart()}, ${getRandomColorPart()}, ${getRandomColorPart()})`,
|
||||||
|
|||||||
Reference in New Issue
Block a user