
pkjce (pkjce) asked a question.
I would like to validate the user upon every API request, and I believe this means making a GET request to https://{{url}}.oktapreview.com/api/v1/sessions/{{sessionId}}. However, I think it is unsafe to store the sessionId on the client side (ie. a cookie), and we are trying to avoid having to store anything server-side, so I'm wondering if there is some built in way to validate sessionTokens. Does anyone know the proper protocol for validating a user that has a client-side sessionToken, that we pass to the server each request?
Would this require us to store the sessionId on the server somewhere (ie. database or memory), associated with the given sessionToken? Thank you,Ryan