Long sessions in a SPA

Hello,
I have integrated okta oidc in an existing react application using the okta sign-in widget. I am using the developer edition of okta. I have noticed that the max expiration time of access tokens is 1 day. What would be the best way to implement longer sessions?
I have seen posts about “silent token renewal” but have not seen any doc on how to configure that in. the sign-in widget.
Thanks a lot for your help

Alex

I guess I have figured out how to configure with react the token renewal, using a tokenManager props on a Security component. However I might have found an issue: if two token renewal requests are performed at the same time, only one out of two will succeed.