blob: ed4aa5d27c5860d2b577690175df377043dd4a49 (
plain)
1
2
3
4
5
6
7
|
/**
* A helper method to convert an arbitrary string sent from the server to a Uint8Array the
* authenticator will expect.
*/
export default function toUint8Array(value: string): Uint8Array {
return Uint8Array.from(value, c => c.charCodeAt(0));
}
|