Added support to requiresAuthentication for NFC schema and interface, along with developer reference link

This commit is contained in:
Alexander Cerutti
2021-08-25 22:44:59 +02:00
parent 5c7599acd6
commit 4470da11ca

View File

@@ -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<NFC>().keys({
message: Joi.string().required().max(64),
encryptionPublicKey: Joi.string(),
encryptionPublicKey: Joi.string().required(),
requiresAuthentication: Joi.boolean(),
});