How can I make a request for the token to be renewed when the token expires, without refreshing the page? with tokenTransferMethod: "header" // or "cookie"
r
rp_st
02/20/2023, 4:31 PM
Hey. The token refreshing should happen on its own.
rp_st
02/20/2023, 4:32 PM
What’s the apiDomain configured on the frontend? And what the graphql sever domain?
rp_st
02/20/2023, 4:32 PM
Also, you shouldn’t read from the cookie store directly
rp_st
02/20/2023, 4:32 PM
Use the Session.getAccessToken function instead - that does refreshing on its own.