blob: b15e5fe83399414ee695236b15a987091b7bb763 (
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 function utf8StringToBuffer(value: string): ArrayBuffer {
return new TextEncoder().encode(value);
}
|