Medhat Ibsais
Medhat Ibsais
Hello @lawmicha, thanks for helping us here, for the problem of unauthorized, we decided to refresh our tokens once the network connection is back, because the token expires every one...
Hello @lawmicha, this code snippet we added to avoid the unauthorized error until you solve this problem, so as you can see in the code below, we refresh our token,...
Hi @lawmicha, the above code snippet that is responsible for refreshing the ID tokens, and thats for to avoid the unauthorized error that it returns when you launch the app...
Hi @lawmicha, if the access token expired and then I tried to call the `DataStore.start()` it keeps sending me unauthorized error in the logs, even if you call it multiple...
Thank you @royjit, but the DataStore doesn’t automatically refresh the tokens, each time you call `DataStore.start` you will receive unauthorized error in the logs
Hi @lawmicha, Yes exactly.
Hello @lawmicha, yes we are using this `AmplifyOIDCAuthProvider` and implement the `getLatestAuthToken` method
Hello @lawmicha we are using the `fetchAuthSession`, `Amplify.Auth.fetchAuthSession`
Hello @lawmicha, I can confirm that this issue solved on Amplify version `1.28.3` I tested it on version `1.28.0` and its appears as the logs above, and then when I...
@lawmicha can you please check it with your team to ensure that it's resolved?