Esempio n. 1
0
        public static void AddJwtLogin(this IServiceCollection services, JwtOptions jwtOptions, string connectionString)
        {
            UserDbContext.ConnectionString = connectionString;
            services.AddSingleton <IRepo <UserDbContext>, Repo <UserDbContext> >();
            services.AddScoped <AuthenticationService, AuthenticationService>();

            JwtAuth.AddJwtAuth(services, jwtOptions);
        }