mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
595 B
C
26 lines
595 B
C
8 years ago
|
//
|
||
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
||
|
//
|
||
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
typedef void (^OWS2FASuccess)(void);
|
||
|
typedef void (^OWS2FAFailure)(NSError *error);
|
||
|
|
||
|
// This class can be safely accessed and used from any thread.
|
||
|
@interface OWS2FAManager : NSObject
|
||
|
|
||
|
- (instancetype)init NS_UNAVAILABLE;
|
||
|
|
||
|
+ (instancetype)sharedManager;
|
||
|
|
||
|
- (BOOL)is2FAEnabled;
|
||
|
|
||
|
- (void)enable2FAWithPin:(NSString *)pin success:(OWS2FASuccess)success failure:(OWS2FAFailure)failure;
|
||
|
|
||
|
- (void)disable2FAWithSuccess:(OWS2FASuccess)success failure:(OWS2FAFailure)failure;
|
||
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|