-
Notifications
You must be signed in to change notification settings - Fork 143
Open
Labels
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
Currently, the New function only returns a non-nil pointer to a SecureCookie even if an error occured, making it impossible to handle failure if a bad hash/block key is passed.
Expected Behavior
There should be a way to know if something went wrong
Possible solutions:
- Expose the
errproperty ofSecureCookie - Have
Newreturn an error - Return a nil pointer if an error occurs
Steps To Reproduce
s := securecookie.New(hashKey, []byte{}) // invalid block keyAnything else?
No response