alexedwards / scs

HTTP Session Management for Go
MIT License
2.09k stars 166 forks source link

Anyone successfully use this with github.com/go-chi/chi? #83

Closed jherman closed 4 years ago

jherman commented 4 years ago

Hi all,

Been attempting to use this with chi, but haven't had any luck. Works well when I remove chi from the equation, but seems to throw a scs: no session data in context exception otherwise.

Any advice?

alexedwards commented 4 years ago

Yes, I've never had a problem using it with chi.

Can you post a minimum reproducible example or test case please?

PatWie commented 4 years ago

I can second that. No issues with chi and scs: https://github.com/infomark-org/infomark/blob/e45ed2dff4504b80d7d789e109affbfb70aac206/auth/authenticate/authenticator.go#L39

scs is reliable!

jherman commented 4 years ago

I was able to get it to work. Thanks folks for helping confirming it does work.