hi
Can you share the logs when you click on another menu after 3 minutes?
Set the log level to Debug.
public class Program
{
public async static Task<int> Main(string[] args)
{
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.Enrich.FromLogContext()
.WriteTo.Async(c => c.File("Logs/logs.txt"))
.WriteTo.Async(c => c.Console())
.CreateLogger();
Cookies will expire after 3 minutes. So click on another menu
also will work.
Can you share an online URL?
It needs to be refreshed or click on other menus to navigate.
hi
Remove your previous code
builder.Services.AddAuthentication(options => { options.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme; })
.AddCookie(options =>
{
options.ExpireTimeSpan = TimeSpan.FromMinutes(10);
options.SlidingExpiration = true;
});
add the new below:
private void ConfigureExternalProviders(ServiceConfigurationContext context, IConfiguration configuration)
{
context.Services.ConfigureApplicationCookie(options =>
{
options.ExpireTimeSpan = TimeSpan.FromMinutes(3);
options.SlidingExpiration = true;
options.Events.OnSigningIn = cookie =>
{
cookie.Properties.IsPersistent = true;
return Task.CompletedTask;
};
});
context.Services.AddAuthentication()
.AddGoogle(GoogleDefaults.AuthenticationScheme, _ => { })
.WithDynamicOptions<GoogleOptions, GoogleHandler>(
....
hi
I mean access_token
.
Authorization: Bearer access_token....
hi
Is the ui angular?
hi
Please share the code of IntergenLabBlazorModule