Follow up to octokit/auth-app.js#465 (comment), reported by @reza-ebrahimi
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()) {
throw new Error("privateKey only contains the first line. Try replacing line breaks with \n")
}
Follow up to octokit/auth-app.js#465 (comment), reported by @reza-ebrahimi
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