Files
khanhduytran0 78b788262c Move LoginViewController to parts
- The account selector now has Add Account item
- Last selected account is kept
- Account token refreshment is done on startup and on select if need
- Moved JIT status to LauncherMenuViewController's toolbar
- Primary View Controller is now LauncherSplitViewController
- More unmentioned(?), see diff.
2022-12-04 11:41:54 +07:00

25 lines
543 B
Objective-C

#import "Foundation/Foundation.h"
typedef void(^Callback)(NSString* status, BOOL success);
@interface BaseAuthenticator : NSObject
@property(class) BaseAuthenticator *current;
@property NSMutableDictionary *authData;
+ (id)loadSavedName:(NSString *)name;
- (id)initWithInput:(NSString *)string;
- (void)loginWithCallback:(Callback)callback;
- (void)refreshTokenWithCallback:(Callback)callback;
- (BOOL)saveChanges;
@end
@interface LocalAuthenticator : BaseAuthenticator
@end
@interface MicrosoftAuthenticator : BaseAuthenticator
@end