export const encodeBase64 = (value: string): string => { if (typeof btoa !== 'undefined') { return btoa(value); } return Buffer.from(value, 'utf-8').toString('base64'); };