moved discord app secret to file and changed it

This commit is contained in:
Sarah Faey 2022-11-22 23:22:57 +01:00
parent e72b4daf51
commit 660eadfbe2
3 changed files with 3 additions and 3 deletions

View file

@ -42,7 +42,7 @@ builder.Services.AddAuthentication(opt =>
.AddDiscord(x =>
{
x.AppId = builder.Configuration["Discord:AppId"];
x.AppSecret = builder.Configuration["Discord:AppSecret"];
x.AppSecret = File.ReadAllText("discordAppSecret.txt");
x.SaveTokens = true;
});

View file

@ -6,8 +6,7 @@
}
},
"Discord": {
"AppId": "942448872335220806",
"AppSecret": "5tsNxK9LtFpNqxqQnLkSJ1B0HJ7P7YUF"
"AppId": "942448872335220806"
},
"AllowedHosts": "*",
"ConnectionStrings": {