Detect expired tokens and attempt token refresh as in the OpenIddict sample app: https://github.com/openiddict/openiddict-samples/pull/332/files and https://github.com/openiddict/openiddict-core/pull/2331/files (these pull requests refer to the issues https://github.com/openiddict/openiddict-core/issues/2157 and https://github.com/openiddict/openiddict-core/issues/2330). In particular, see https://github.com/openiddict/openiddict-samples/blob/dev/samples/Dantooine/Dantooine.WebAssembly.Server/Startup.cs#L153-L222 and https://github.com/openiddict/openiddict-samples/blob/dev/samples/Dantooine/Dantooine.WebAssembly.Server/Helpers/TokenRefreshingDelegatingHandler.cs See also https://github.com/openiddict/openiddict-core/blob/b33dad15f37ccfc4228217efdd4fa84f54e4d9e4/sandbox/OpenIddict.Sandbox.AspNetCore.Client/Controllers/HomeController.cs#L61 and Implementing these changes should also fix the issue of automatically getting logged-out after a few minutes when using the frontend.
Detect expired tokens and attempt token refresh as in the OpenIddict sample app: https://github.com/openiddict/openiddict-samples/pull/332/files and https://github.com/openiddict/openiddict-core/pull/2331/files (these pull requests refer to the issues openiddict/openiddict-core#2157 and openiddict/openiddict-core#2330).
In particular, see https://github.com/openiddict/openiddict-samples/blob/dev/samples/Dantooine/Dantooine.WebAssembly.Server/Startup.cs#L153-L222 and https://github.com/openiddict/openiddict-samples/blob/dev/samples/Dantooine/Dantooine.WebAssembly.Server/Helpers/TokenRefreshingDelegatingHandler.cs
See also https://github.com/openiddict/openiddict-core/blob/b33dad15f37ccfc4228217efdd4fa84f54e4d9e4/sandbox/OpenIddict.Sandbox.AspNetCore.Client/Controllers/HomeController.cs#L61 and
Implementing these changes should also fix the issue of automatically getting logged-out after a few minutes when using the frontend.