alexedwards / scs

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

Re-add Token() for v2 #58

Closed jpfluger closed 5 years ago

jpfluger commented 5 years ago

My middleware unit testing used the v1 Token() function for verifications of client-server responses. Does v2 have a way for middleware to access the private token directly?

jpfluger commented 5 years ago

Actually, I think I just answered this question. I can compose MySession from Session and override the function LoadAndSaveHeader as in this example. That will work!