Can I use supertokens session recipe, to store an ...
# support-questions-legacy
l
Can I use supertokens session recipe, to store an oauth token that's not supposed to accessible by the client, but only by the server?
r
Hey @leolurchig You can.
Use the sessionData payload to store the tokens.
Instead of the accessTokenPayload
But keep in mind that fetching the session data entails querying the db each time.
l
Alright, thanks a lot for the fast response!
@rp_st would every sessionData request count as a MAU for pricing?
r
It wouldn’t
Session data is just like access token payload, except that it’s not exposed to the frontend
l
Thanks!
@rp_st if my backend is express, is there a way to automatically cache the sessionData / would anything stand in the way of implementing the caching myself?
r
nothing would stand in the way if you want to impl caching yourslef.
You can implement caching based on the session's
sessionHandle
.
l
Perfect 👍