fleeta-api-lib
Version:
A comprehensive library for fleet management applications - API, Auth, Device management
38 lines • 1.17 kB
TypeScript
/**
* Auth Store Utilities
* AuthStore에서 API 호출에 필요한 AuthConfig를 추출하는 유틸리티 함수들
*/
/**
* API 호출에 필요한 인증 정보 인터페이스
*/
export interface AuthConfig {
userToken: string;
userEmail: string;
jwtToken: string;
}
/**
* AuthStore에서 AuthConfig 정보를 추출
* @returns AuthConfig 객체 또는 null (인증되지 않은 경우)
*/
export declare function getAuthConfigFromStore(): AuthConfig | null;
/**
* 인증이 완료되었는지 확인
* @returns true if authenticated and all required auth data is available
*/
export declare function isAuthConfigured(): boolean;
/**
* 인증 정보가 유효한지 확인 (추가 검증)
* @returns true if auth config is valid
*/
export declare function isAuthConfigValid(): boolean;
/**
* API 호출용 인증 헤더 생성
* @returns HTTP headers for API calls
*/
export declare function getAuthHeaders(): Record<string, string>;
/**
* 인증 에러 시 표준 에러 메시지 반환
* @returns Standard authentication error message
*/
export declare function getAuthErrorMessage(): string;
//# sourceMappingURL=authUtils.d.ts.map