From 4470da11ca7d67c4e5a41605d1b6f90bea45dd22 Mon Sep 17 00:00:00 2001 From: Alexander Cerutti Date: Wed, 25 Aug 2021 22:44:59 +0200 Subject: [PATCH] Added support to requiresAuthentication for NFC schema and interface, along with developer reference link --- src/schemas/nfc.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/schemas/nfc.ts b/src/schemas/nfc.ts index f46ef29..fc012aa 100644 --- a/src/schemas/nfc.ts +++ b/src/schemas/nfc.ts @@ -1,11 +1,17 @@ import Joi from "joi"; +/** + * @see https://developer.apple.com/documentation/walletpasses/pass/nfc + */ + export interface NFC { message: string; - encryptionPublicKey?: string; + encryptionPublicKey: string; + requiresAuthentication?: boolean; } export const NFC = Joi.object().keys({ message: Joi.string().required().max(64), - encryptionPublicKey: Joi.string(), + encryptionPublicKey: Joi.string().required(), + requiresAuthentication: Joi.boolean(), });