Previously, tokens were saved in json under plain text, making it insecure. Now, they are stored in iOS's keychian with the hope of making it more secure.
17 lines
429 B
Objective-C
17 lines
429 B
Objective-C
#import "BaseAuthenticator.h"
|
|
|
|
@implementation LocalAuthenticator
|
|
|
|
- (void)loginWithCallback:(Callback)callback {
|
|
self.authData[@"oldusername"] = self.authData[@"username"] = self.authData[@"input"];
|
|
self.authData[@"profileId"] = @"00000000-0000-0000-0000-000000000000";
|
|
callback(nil, [super saveChanges]);
|
|
}
|
|
|
|
- (void)refreshTokenWithCallback:(Callback)callback {
|
|
// Nothing to do
|
|
callback(nil, YES);
|
|
}
|
|
|
|
@end
|