Hi, I am new to supertokens and I have a question ...
# support-questions-legacy
a
Hi, I am new to supertokens and I have a question about refreshing the session. My user send the un/pass to my server, my server calls:
const sess = Session.createNewSessionWithoutRequestResponse
and reply back to the client with
sess.getAccessToken()
, the client now pass this token in the Bearer string. As far as I understand this token is good for 1 hour, so I want refresh refresh it. 1. how do I get the refresh token from the session in order to refresh the sesssion? 2. should I send back the refresh token the same way I send the accessToken? 3. When should I refresh, on every request? Thanks