31 lines
545 B
Objective-C
31 lines
545 B
Objective-C
//
|
|
// 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
|