summaryrefslogtreecommitdiff
path: root/Program.cs
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2023-09-14 01:16:34 +1000
committerJake Mannens <jake@asger.xyz>2023-09-14 01:16:34 +1000
commitd70e61cb290187bda3fa5bbc37bb25bcd3c0591e (patch)
tree156971192ae1991fb798a3bae5798bceb1426e8c /Program.cs
parente6e43b943143d55581ef442b61ed6cbdbb40c642 (diff)
Fix SignInAsync call
Diffstat (limited to 'Program.cs')
-rw-r--r--Program.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Program.cs b/Program.cs
index 01b7949..d8aa5c6 100644
--- a/Program.cs
+++ b/Program.cs
@@ -7,6 +7,7 @@ namespace HyperBooru;
public class Program {
public static void Main(string[] args) {
var builder = WebApplication.CreateBuilder(args);
+ builder.Services.AddAuthentication().AddCookie();
builder.Services.AddHttpContextAccessor();
builder.Services.AddControllers().AddJsonOptions(o => {
var converter = new JsonStringEnumConverter();