overdue code cleanup (#1271)
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
using System.Text;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
|
||||
namespace ErsatzTV;
|
||||
|
||||
public static class JwtHelper
|
||||
{
|
||||
public static SymmetricSecurityKey IssuerSigningKey { get; private set; }
|
||||
public static bool IsEnabled { get; private set; }
|
||||
|
||||
public static void Init(IConfiguration configuration)
|
||||
{
|
||||
string issuerSigningKey = configuration["JWT:IssuerSigningKey"];
|
||||
@@ -14,7 +17,4 @@ public static class JwtHelper
|
||||
IssuerSigningKey = new SymmetricSecurityKey(Encoding.ASCII.GetBytes(issuerSigningKey!));
|
||||
}
|
||||
}
|
||||
|
||||
public static SymmetricSecurityKey IssuerSigningKey { get; private set; }
|
||||
public static bool IsEnabled { get; private set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user