You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first line might be -----BEGIN PRIVATE KEY----- or -----BEGIN RSA PRIVATE KEY-----, maybe we will support other variations in future. But they all have the format -----BEGIN * KEY-----
I would suggest we add a check like
if(/-----BEGIN*KEY-----/.test(privateKey?.trim()){thrownewError("privateKey only contains the first line. Try replacing line breaks with \n")}