blob: a4b97c984bc50970cde875c04cf074c50060bcae (
plain)
1
2
3
4
5
6
7
|
/**
* A helper method to convert an arbitrary ArrayBuffer, returned from an authenticator, to a UTF-8
* string.
*/
export default function bufferToUTF8String(value: ArrayBuffer): string {
return new TextDecoder('utf-8').decode(value);
}
|