Skip to content

Commit

Permalink
fix: use nepali date
Browse files Browse the repository at this point in the history
  • Loading branch information
BirajMainali committed Jan 28, 2024
1 parent 5fc7168 commit 9789857
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion App.Web/DiConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.IdentityModel.Tokens;
using Microsoft.OpenApi.Models;
using NepaliDateConverter;

namespace App.Web;

Expand All @@ -31,7 +32,7 @@ public static void UseApp(this WebApplicationBuilder builder)
var jwtSettings = builder.Configuration.GetSection("JwtSettings");
var secret = jwtSettings.GetSection("Secret").Value;


builder.Services.AddAuthentication(opt =>
{
opt.DefaultAuthenticateScheme = "smart";
Expand Down Expand Up @@ -116,6 +117,7 @@ public static void UseApp(this WebApplicationBuilder builder)
.AddScoped<DbContext, ApplicationDbContext>()
.AddScoped<IAuthenticator, Authenticator>().AddHttpContextAccessor();

builder.Services.UseNepaliDate();
builder.Services.ConfigureServices();
builder.Services.AddCors(options =>
{
Expand Down

0 comments on commit 9789857

Please sign in to comment.