Auth Package Extraction And Auth Flow Refactor #2

Merged
aetos merged 5 commits from auth-package into main 2025-12-28 14:47:38 +00:00
2 changed files with 12 additions and 6 deletions
Showing only changes of commit 5f6ae489fa - Show all commits

View File

@@ -2,12 +2,7 @@ import React, { createContext, useContext, useEffect, useState } from "react";
import axios from "axios";
import { tokenStore } from "./token";
import { attachAuthInterceptors } from "./axios";
export interface AuthUser {
_id: string;
username: string;
[key: string]: any;
}
import { AuthUser } from "./models";
interface AuthContextModel {
currentUser: AuthUser | null;

11
auth/src/models.ts Normal file
View File

@@ -0,0 +1,11 @@
export interface AuthUser {
// meta fields
_id?: string | null;
created_at: string;
updated_at: string;
// model fields
username: string;
email: string;
is_active: boolean;
}