You've already forked hotpocket
BTHLABS-58: Share Extension in Apple Apps
This commit is contained in:
32
services/apple/Shared (App)/HPCredentialsHelper.h
Normal file
32
services/apple/Shared (App)/HPCredentialsHelper.h
Normal file
@@ -0,0 +1,32 @@
|
||||
//
|
||||
// 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
|
||||
Reference in New Issue
Block a user