-
Notifications
You must be signed in to change notification settings - Fork 12
/
PFUser+Digits.h
46 lines (28 loc) · 1.69 KB
/
PFUser+Digits.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//
// PFUser+Digits.h
//
// Created by Felix Dumit on 11/6/14.
// Copyright (c) 2015 Felix. All rights reserved.
#import <Foundation/Foundation.h>
#import <Parse/Parse.h>
NS_ASSUME_NONNULL_BEGIN
@class DGTAuthenticationConfiguration;
@interface PFUser (Digits)
+(void) enableDigitsLogin;
@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString * _Nullable digitsId;
@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString * _Nullable digitsEmail;
@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString * _Nullable digitsPhone;
@property (NS_NONATOMIC_IOSONLY, readonly) BOOL digitsEmailVerified;
+ (void) cleanupDigitsSessionAfterLogout;
+ (void)loginWithDigitsInBackground:(void (^) (__kindof PFUser * _Nullable, NSError * _Nullable))block;
+ (void)loginWithDigitsInBackgroundWithConfiguration:(nullable DGTAuthenticationConfiguration *)configuration completion:(void (^) (__kindof PFUser *, NSError *error))block;
+ (BFTask<__kindof PFUser *> *) loginWithDigitsInBackground;
+ (BFTask<__kindof PFUser *> *)loginWithDigitsInBackgroundWithConfiguration:(nullable DGTAuthenticationConfiguration *)configuration;
- (void)linkWithDigitsInBackground:(void (^) (BOOL succeeded, NSError *error))block;
- (void)linkWithDigitsInBackgroundWithConfiguration:(nullable DGTAuthenticationConfiguration *)configuration completion:(void (^) (BOOL succeeded, NSError *error))block;
- (BFTask<NSNumber *> *)linkWithDigitsInBackground;
- (BFTask<NSNumber *> *)linkWithDigitsInBackgroundWithConfiguration:(nullable DGTAuthenticationConfiguration *)configuration;
- (BFTask<NSNumber *> *)unlinkWithDigits;
@property (NS_NONATOMIC_IOSONLY, getter=isLinkedWithDigits, readonly) BOOL linkedWithDigits;
@end
NS_ASSUME_NONNULL_END