markbates/goth

Updating dependencies breaks login: securecookie: hash key is not set

lesichkovm opened this issue · 0 comments

Not sure why you need the gorilla/sessions package but updating the intenal depemdencies to the latest version breaks gothic login:

github.com/gorilla/securecookie v1.1.1 // indirect
github.com/gorilla/sessions v1.2.2 // indirect

Upgrading to:

github.com/gorilla/securecookie v1.1.2 // indirect
github.com/gorilla/sessions v1.2.1 // indirect

Causes the login to fail with the message displayed on the screen

securecookie: hash key is not set

In addition the following message is displayed:

goth/gothic: no SESSION_SECRET environment variable is set. The default cookie store is not available and any calls will fail. Ignore this warning if you are using a different store.

Note! I do not use the default cookie store, so I ignore this message.