blob: 32cb7179da0efe99b89d6ee24ad62870a2da2291 (
plain)
1
2
3
4
5
6
7
|
/**
* 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);
}
|