//
//  Auth.h
//  KeyAuth Authentication SDK
//
//  Created by AnhVu on 25/12/2025.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface AnhvuAuth : NSObject

+ (instancetype)shareInstance;

- (void)packages:(NSString *)token onAuthenticated:(void (^)(void))onSuccess;
- (void)activateWithKey:(NSString *)key 
              onSuccess:(void (^)(NSString *message))onSuccess 
              onFailure:(void (^)(NSString *errorMessage))onFailure;
- (BOOL)isActivated;
- (void)logout;

- (NSString *)getKey;
- (NSString *)getExpirationDate;
- (NSString *)getDeviceModel;
- (NSString *)getDeviceUUID;

@end

NS_ASSUME_NONNULL_END
