Index: iknow-api/Controllers/AuthController.cs
===================================================================
--- iknow-api/Controllers/AuthController.cs	(revision 9538edc6e5b4e46a44364cdbc2c10b0ae05dcc98)
+++ iknow-api/Controllers/AuthController.cs	(revision e49c3ed29c9cabd1ad53e1ee59408de56ad28cc5)
@@ -1,4 +1,6 @@
 ﻿using iknow_api.DTOs;
 using iknow_api.Services;
+using Microsoft.AspNetCore.Authorization;
+using Microsoft.AspNetCore.Authentication.JwtBearer;
 using Microsoft.AspNetCore.Mvc;
 
@@ -45,4 +47,11 @@
             return Ok(new { Token = token });
         }
+
+        [Authorize]
+        [HttpGet("getstring")]
+        public async Task<IActionResult> getstring()
+        {
+            return Ok(new { message = "You are authorized!" });
+        }
     }
 }
Index: iknow-api/Data/AppDbContext.cs
===================================================================
--- iknow-api/Data/AppDbContext.cs	(revision 9538edc6e5b4e46a44364cdbc2c10b0ae05dcc98)
+++ iknow-api/Data/AppDbContext.cs	(revision e49c3ed29c9cabd1ad53e1ee59408de56ad28cc5)
@@ -1,6 +1,6 @@
 using Microsoft.EntityFrameworkCore;
-using iknow_api.Core.Models;
+using iknow_api.Models;
 
-namespace iknow_api.Core.Data
+namespace iknow_api.Data
 {
     public class AppDbContext : DbContext
Index: iknow-api/Migrations/20251022202014_InitialCreate.Designer.cs
===================================================================
--- iknow-api/Migrations/20251022202014_InitialCreate.Designer.cs	(revision 9538edc6e5b4e46a44364cdbc2c10b0ae05dcc98)
+++ iknow-api/Migrations/20251022202014_InitialCreate.Designer.cs	(revision e49c3ed29c9cabd1ad53e1ee59408de56ad28cc5)
@@ -6,5 +6,5 @@
 using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
-using iknow_api.Core.Data;
+using iknow_api.Data;
 
 #nullable disable
Index: iknow-api/Migrations/AppDbContextModelSnapshot.cs
===================================================================
--- iknow-api/Migrations/AppDbContextModelSnapshot.cs	(revision 9538edc6e5b4e46a44364cdbc2c10b0ae05dcc98)
+++ iknow-api/Migrations/AppDbContextModelSnapshot.cs	(revision e49c3ed29c9cabd1ad53e1ee59408de56ad28cc5)
@@ -5,5 +5,5 @@
 using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
-using iknow_api.Core.Data;
+using iknow_api.Data;
 
 #nullable disable
Index: iknow-api/Models/User.cs
===================================================================
--- iknow-api/Models/User.cs	(revision 9538edc6e5b4e46a44364cdbc2c10b0ae05dcc98)
+++ iknow-api/Models/User.cs	(revision e49c3ed29c9cabd1ad53e1ee59408de56ad28cc5)
@@ -1,5 +1,5 @@
 
 
-namespace iknow_api.Core.Models
+namespace iknow_api.Models
 {
     public enum UserRole
Index: iknow-api/Program.cs
===================================================================
--- iknow-api/Program.cs	(revision 9538edc6e5b4e46a44364cdbc2c10b0ae05dcc98)
+++ iknow-api/Program.cs	(revision e49c3ed29c9cabd1ad53e1ee59408de56ad28cc5)
@@ -1,9 +1,35 @@
+using System.Text;
+using iknow_api.Data;
+using iknow_api.Repositories;
+using iknow_api.Services;
+using Microsoft.AspNetCore.Authentication.JwtBearer;
 using Microsoft.EntityFrameworkCore;
-using iknow_api.Core.Data;
-using iknow_api.Services;
-using iknow_api.Repositories;
+using Microsoft.IdentityModel.Tokens;
 
 var builder = WebApplication.CreateBuilder(args);
+builder.Services.AddAuthentication(options =>
+{
+    options.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme;
+    options.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme;
+})
+.AddJwtBearer(options =>
+{
+    options.RequireHttpsMetadata = false; // only for development
+    options.SaveToken = true;
+    options.TokenValidationParameters = new TokenValidationParameters
+    {
+        ValidateIssuer = true,
+        ValidIssuer = "iknow-api",
 
+        ValidateAudience = true,
+        ValidAudience = "iknow-api",
+
+        ValidateLifetime = true,
+
+        ValidateIssuerSigningKey = true,
+        IssuerSigningKey = new SymmetricSecurityKey(
+            Encoding.UTF8.GetBytes(builder.Configuration["Jwt:Key"]))
+    };
+});
 // Add services to the container.
 builder.Services.AddControllers();
@@ -17,5 +43,5 @@
 builder.Services.AddScoped<IAuthService, AuthService>();
 builder.Services.AddScoped<IUserRepository, UserRepository>(); // You'll need to add the UserRepository implementation
-
+builder.Services.AddAuthorization();
 var app = builder.Build();
 
@@ -27,4 +53,5 @@
 
 app.UseHttpsRedirection();
+app.UseAuthentication(); // <-- must come BEFORE UseAuthorization
 app.UseAuthorization();
 app.MapControllers();
Index: iknow-api/Repository/Implementations/UserRepository.cs
===================================================================
--- iknow-api/Repository/Implementations/UserRepository.cs	(revision 9538edc6e5b4e46a44364cdbc2c10b0ae05dcc98)
+++ iknow-api/Repository/Implementations/UserRepository.cs	(revision e49c3ed29c9cabd1ad53e1ee59408de56ad28cc5)
@@ -1,6 +1,5 @@
-using iknow_api.Core.Models;
-using iknow_api.Core.Data;
-using iknow_api.Core.Data;
-using iknow_api.Core.Models;
+using iknow_api.Models;
+using iknow_api.Data;
+using iknow_api.Models;
 using Microsoft.EntityFrameworkCore;
 
Index: iknow-api/Repository/Interface/IUserRepository.cs
===================================================================
--- iknow-api/Repository/Interface/IUserRepository.cs	(revision 9538edc6e5b4e46a44364cdbc2c10b0ae05dcc98)
+++ iknow-api/Repository/Interface/IUserRepository.cs	(revision e49c3ed29c9cabd1ad53e1ee59408de56ad28cc5)
@@ -1,3 +1,3 @@
-using iknow_api.Core.Models;
+using iknow_api.Models;
 namespace iknow_api.Repositories
 {
Index: iknow-api/Services/Implementations/AuthService.cs
===================================================================
--- iknow-api/Services/Implementations/AuthService.cs	(revision 9538edc6e5b4e46a44364cdbc2c10b0ae05dcc98)
+++ iknow-api/Services/Implementations/AuthService.cs	(revision e49c3ed29c9cabd1ad53e1ee59408de56ad28cc5)
@@ -4,5 +4,5 @@
 using BCrypt.Net;
 using iknow_api.Controllers;
-using iknow_api.Core.Models;
+using iknow_api.Models;
 using iknow_api.DTOs;
 using iknow_api.Repositories;
@@ -36,5 +36,5 @@
                 Bday = DateTime.SpecifyKind(registerDto.Bday, DateTimeKind.Utc),
                 CreatedAt = DateTime.UtcNow,
-                Role = (Core.Models.UserRole)registerDto.Role
+                Role = (Models.UserRole)registerDto.Role
             };
 
@@ -62,5 +62,5 @@
             {
                 new Claim("id", user.Id.ToString()),
-                new Claim("username", user.Email ?? string.Empty),
+                new Claim("email", user.Email ?? string.Empty),
                 new Claim("role", user.Role.ToString())
             };
Index: now-api/WeatherForecast.cs
===================================================================
--- iknow-api/WeatherForecast.cs	(revision 9538edc6e5b4e46a44364cdbc2c10b0ae05dcc98)
+++ 	(revision )
@@ -1,13 +1,0 @@
-namespace iknow_api
-{
-    public class WeatherForecast
-    {
-        public DateOnly Date { get; set; }
-
-        public int TemperatureC { get; set; }
-
-        public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
-
-        public string? Summary { get; set; }
-    }
-}
Index: iknow-api/iknow-api.csproj
===================================================================
--- iknow-api/iknow-api.csproj	(revision 9538edc6e5b4e46a44364cdbc2c10b0ae05dcc98)
+++ iknow-api/iknow-api.csproj	(revision e49c3ed29c9cabd1ad53e1ee59408de56ad28cc5)
@@ -10,4 +10,5 @@
   <ItemGroup>
     <PackageReference Include="BCrypt.Net-Next" Version="4.0.3" />
+    <PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="9.0.10" />
     <PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.9" />
     <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.10">
