Files
PojavLauncher_iOS/Natives/authenticator/LocalAuthenticator.m
T
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

18 lines
478 B
Objective-C

#import "BaseAuthenticator.h"
@implementation LocalAuthenticator
- (void)loginWithCallback:(Callback)callback {
self.authData[@"oldusername"] = self.authData[@"username"] = self.authData[@"input"];
self.authData[@"accessToken"] = @"0";
self.authData[@"profileId"] = @"00000000-0000-0000-0000-000000000000";
callback(nil, [super saveChanges]);
}
- (void)refreshTokenWithCallback:(Callback)callback {
// Nothing to do
callback(nil, YES);
}
@end