//
//  HPCredentialsHelper.h
//  HotPocket
//
//  Created by Tomek Wójcik on 19/09/2025.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface HPCredentials : NSObject

@property (nullable) NSString *baseURL;
@property (nullable) NSString *accessToken;

@property (readonly) BOOL usable;
@property (readonly) NSURL *rpcURL;

@end

@interface HPCredentialsHelper : NSObject

+(instancetype)sharedHelper;

-(HPCredentials *)getCredentials;
-(BOOL)saveCredentials:(NSString *)baseURL accessToken:(NSString *)accessToken;
-(BOOL)clearCredentials;

@end

NS_ASSUME_NONNULL_END
