Ignore:
Timestamp:
01/26/26 17:59:16 (6 months ago)
Author:
Filip Gavrilovski <filipgavrilovski28@…>
Branches:
main
Children:
484dc3f
Parents:
4022db1
Message:

modify user response dto to store other relevant user data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • frontend/src/Login.tsx

    r4022db1 r3727852  
    33import axiosInstance, { scheduleTokenRefresh } from "./api/axiosInstance";
    44import { useAuth } from "./context/authContext";
    5 import type { UserResponse } from "./types";
     5import type { User } from "./types";
    66
    77const Login = () => {
     
    1616                try {
    1717                        const response = await axiosInstance.post<{
    18                                 user: UserResponse;
     18                                user: User;
    1919                                tokenExpiresIn: number;
    2020                        }>("/auth/login", { username, password });
     
    6565                                <button
    6666                                        type="submit"
    67                                         className="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-lg text-sm font-medium transition-colors duration-200 w-full"
     67                                        className="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-lg text-sm font-medium transition-colors duration-200 w-full cursor-pointer"
    6868                                >
    6969                                        Login
Note: See TracChangeset for help on using the changeset viewer.