Hi everyone. I need to test some user routes in an app that I'm building. These endpoint use a (header-based) session. My question is, how can I tell the sessions feature to "create" a session before calling that user endpoint? What I'm doing right now is calling the actual logging-in endpoint to set up the session properly and using the header that that returns.
n
Nikky
05/07/2020, 11:12 PM
you call
call.sessions[stringKey] = YourSessionType()
i do that via a
/login
endpoint too
if you are testing.. maybe you can have code that generates a valid token on the server and gives you the key so you can set it in the client
still think just