更新JWT

This commit is contained in:
chfei committed 2026-10-23 19:28:17 +08:00
1 parent bb7162aaf6
commit 3769193696
16 files changed
+224 -141

No files matched your search

@@ -28,6 +28,10 @@ public sealed class DevelopmentTokenTests
["Jwt:DevelopmentToken:Token"] = "test-fixed-token",
["Jwt:DevelopmentToken:UserName"] = "admin"
});
using var db = new FreeSql.FreeSqlBuilder()
.UseConnectionString(FreeSql.DataType.Sqlite, "Data Source=:memory:").Build();
db.CodeFirst.SyncStructure<OnlineUserInfo>();
builder.Services.AddSingleton<IFreeSql>(db);
builder.Services.AddStoreHubJwt(builder.Configuration);
await using var app = builder.Build();
app.UseAuthentication();