Hi,
I think I’m missing something here.
I’m using the react sdk. All the configuration works fine.
Every time the user logs in I use the getAccessTokenSilently() to get a token so I can call my backend.
The thing is, if the user keeps refreshing the page the getAccessTokenSilently returns a new token (I guess it makes sense because I’m using the in memory storage).
Is there a way to prevent this without using the local storage ?
If I refresh I don’t have to login again, the session is still there so why is the getAccessTokenSilently returning a new token?
I don’t know if I’m missing something but it seems odd. I can solve this by configuring cookies myself but if my session is still up the getAccessTokenSilently could return the same token.