//
//  LoginStateManager.h
//  AIIM
//
//  Created by qitewei on 2025/6/15.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface LoginStateManager : NSObject
// 登录状态
@property (nonatomic, assign, readonly) BOOL isLoggedIn;
// 当前用户ID
@property (readonly) NSString *currentUserID;
// 当前用户Token
@property (readonly) NSString *currentUserToken;

// 单例访问方法
+ (instancetype)sharedManager;

- (void)cleanLoginState;

- (void)logout;

- (void)requestUserInfoWith:(nullable void(^)(BOOL isSuccess))completion;

@end

NS_ASSUME_NONNULL_END
