blob: 8a6c3b9ffa1fbc88f43d4b70ed94fc7adcb44145 (
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 function bufferToUTF8String(value: ArrayBuffer): string {
return new TextDecoder("utf-8").decode(value);
}
|