-
Notifications
You must be signed in to change notification settings - Fork 14
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
getKey and getKeyEnv silently default. #27
Comments
This would also get rid of the need for to use putStrLn for generating the env key and defer that action to the library user. |
If I understand correctly, you're suggesting that the functions should:
That sounds like a good idea. |
Yup, 👍 on pushing the |
@meteficha yes, that is a perfect summary |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is a problem with the getKey and getKeyEnv from clientsession: they both silently default to generating a new key when one is missing.
Can we change these functions (actually add new ones) that essentially return an Either? Left would be a default, and in that case a warning can be logged for the user.
I would suggest as new function names
keyFromFile
andkeyFromEnv
.However, this points to the fact that some kind of generic key generator is needed. Also, Either may not be descriptive enough.
The text was updated successfully, but these errors were encountered: