Open kolindalanaresh opened 1 year ago
import { fromByteArray } from 'base64-js'; import { TextEncoder } from 'text-encoding-utf-8';
const passString = JSON.stringify(boardingPass); //boardingPass= your pass const passBytes = fromByteArray(new TextEncoder().encode(passString));
Can someone please help us how to create a base64EncodedPass.