Hi, I'm pretty new. I am trying to use the code from
https://github.com/gorilla/securecookie to create a cookie and then later decode the info.
I have been able to encode the cookie but am unable to properly decode it. I am getting the following error:
securecookie.cookieError{typ:2, msg:"the value is not valid", cause:error(nil)}
here is a link to my function that contains the decoding snippet in it.
https://gist.github.com/yshuman1/47a383b686dee58bc51d679a191e4f56I am able to confirm the cookie exists and is properly encoded by another function. If I am neglecting to include any valuable info please let me know and thanks in advance to anyone that takes the time to try to help me figure this out.