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?
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!
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 privatetoken
directly?