Correctly extract string data for password.
btoa expects a string argument, so when passing it the ArrayBuffer object returned by getRandomBytes(), it's converted to a string by calling .toString() on it. This always results in "[object ArrayBuffer]", effectively resulting in a completely non-random password.pull/749/head
parent
cf79b41cc4
commit
3d7db4dbc3
Loading…
Reference in New Issue