Does `Session.attemptRefreshingSession` forces a n...
# support-questions-legacy
e
Does
Session.attemptRefreshingSession
forces a new token token to be created with the default TTL? 🤔
Right now i'm trying to refresh the token before it even expires for a websocket connection, if i utilize
Session.getAccessTokenPayloadSecurely
it will differ from the global jwt that i'm storing as triggering
attemptRefreshingSession
did not return a new JWT so it will attempt to use the old one which seems a weird behaviour
Also my question is: If we trigger a refresh, does the
onHandle
receive the event of the token being refreshed? Sometimes i notice that it doesn't go, after refreshing if i invoke Session.getAccess in the next line, the token is now different but the
onHandle
was not invoked
@rp_st If you could help that would be awesome 🙂