You've already forked hotpocket
BTHLABS-58: Share Extension in Apple Apps
This commit is contained in:
30
services/apple/Shared (App)/HPAuthFlow.h
Normal file
30
services/apple/Shared (App)/HPAuthFlow.h
Normal file
@@ -0,0 +1,30 @@
|
||||
//
|
||||
// HPAuthFlow.h
|
||||
// HotPocket (macOS)
|
||||
//
|
||||
// Created by Tomek Wójcik on 21/09/2025.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface HPAuthParams : NSObject
|
||||
|
||||
@property (copy) NSString *authKey;
|
||||
@property (copy) NSString *sessionToken;
|
||||
|
||||
@end
|
||||
|
||||
@interface HPAuthFlow : NSObject
|
||||
|
||||
@property (nullable) NSURL *baseURL;
|
||||
@property (nullable) NSString *sessionToken;
|
||||
|
||||
-(NSURL *)start;
|
||||
-(HPAuthParams *)handlePostAuthenticateURL:(NSURL *)url;
|
||||
-(BOOL)handleAuthParams:(HPAuthParams *)authParams;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Reference in New Issue
Block a user