refacto: error and types
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { KomgaUser } from "./komga";
|
||||
import { ErrorCode } from "@/constants/errorCodes";
|
||||
|
||||
export interface AuthConfig {
|
||||
serverUrl: string;
|
||||
@@ -11,10 +10,3 @@ export interface AuthState {
|
||||
user: KomgaUser | null;
|
||||
serverUrl: string | null;
|
||||
}
|
||||
|
||||
export interface AuthError {
|
||||
code: ErrorCode;
|
||||
}
|
||||
|
||||
// Deprecated - Use ErrorCode from @/constants/errorCodes instead
|
||||
export type AuthErrorCode = ErrorCode;
|
||||
|
||||
Reference in New Issue
Block a user