markbates / goth

Package goth provides a simple, clean, and idiomatic way to write authentication packages for Go web applications.
https://blog.gobuffalo.io/goth-needs-a-new-maintainer-626cd47ca37b
MIT License
5.2k stars 566 forks source link

feat: support overriding the gothic.SessionName value #470

Open lrstanley opened 1 year ago

lrstanley commented 1 year ago

As it stands currently, the goth package forces cookies under a specific name. This is fine when working with one http service and/or routing handler, however if one is developing multiple http services locally, or registering multiple independent goth configurations, the inability to override this value means that each configuration will overwrite eachother. I suspect simply changing this from a const to a var will be backwards compatible (though not the most ideal, global package variables).