/** * A helper method to convert an arbitrary string sent from the server to an ArrayBuffer the * authenticator will expect. */ export default function utf8StringToBuffer(value: string): ArrayBuffer { return new TextEncoder().encode(value); }