-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(get-app-authentication): improve error message when privateKey is incomplete #312
Conversation
@gr2m Not sure if we should test this in a pre-release first. What do you think? |
test/index.test.ts
Outdated
|
||
await expect(auth({ type: "app" })).rejects.toEqual( | ||
new Error( | ||
"Private key is incomplete. Make sure it is a single line String and newlines have been replaced by '\n'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I suggest we slightly change the error message to
"Private key is incomplete. Make sure it is a single line String and newlines have been replaced by '\n'" | |
"The 'privateKey` option contains only the first line '-----BEGIN RSA PRIVATE KEY-----'. If you are setting it using a `.env` file, make sure it is set on a single line with newlines replaced by '\n'" |
what do you think?
no pre-release necessary can you check what's up with the node 10 tests? |
checking Node 10 issue |
Thanks Oscar! |
π This PR is included in version 3.6.0 π The release is available on: Your semantic-release bot π¦π |
π Summary
privateKey
provided by a user is incomplete (with only-----BEGIN RSA PRIVATE KEY-----
)β± Motivation and Context
Fix #311