commit | author | age
|
2e29a3
|
1 |
/* |
L |
2 |
* Copyright (c) Meta Platforms, Inc. and affiliates. |
|
3 |
* All rights reserved. |
|
4 |
* |
|
5 |
* This source code is licensed under the license found in the |
|
6 |
* LICENSE file in the root directory of this source tree. |
|
7 |
*/ |
|
8 |
|
|
9 |
#import <Foundation/Foundation.h> |
|
10 |
|
|
11 |
@class FBSDKAuthenticationTokenClaims; |
|
12 |
@protocol FBSDKTokenCaching; |
|
13 |
|
|
14 |
NS_ASSUME_NONNULL_BEGIN |
|
15 |
|
|
16 |
/** |
|
17 |
Represent an AuthenticationToken used for a login attempt |
|
18 |
*/ |
|
19 |
NS_SWIFT_NAME(AuthenticationToken) |
|
20 |
@interface FBSDKAuthenticationToken : NSObject <NSCopying, NSObject, NSSecureCoding> |
|
21 |
|
|
22 |
- (instancetype)init NS_UNAVAILABLE; |
|
23 |
+ (instancetype)new NS_UNAVAILABLE; |
|
24 |
|
|
25 |
/** |
|
26 |
The "global" authentication token that represents the currently logged in user. |
|
27 |
|
|
28 |
The `currentAuthenticationToken` represents the authentication token of the |
|
29 |
current user and can be used by a client to verify an authentication attempt. |
|
30 |
*/ |
|
31 |
@property (class, nullable, nonatomic, copy) FBSDKAuthenticationToken *currentAuthenticationToken; |
|
32 |
|
|
33 |
/** |
|
34 |
The raw token string from the authentication response |
|
35 |
*/ |
|
36 |
@property (nonatomic, readonly, copy) NSString *tokenString; |
|
37 |
|
|
38 |
/** |
|
39 |
The nonce from the decoded authentication response |
|
40 |
*/ |
|
41 |
@property (nonatomic, readonly, copy) NSString *nonce; |
|
42 |
|
|
43 |
/** |
|
44 |
The graph domain where the user is authenticated. |
|
45 |
*/ |
|
46 |
@property (nonatomic, readonly, copy) NSString *graphDomain; |
|
47 |
|
|
48 |
/** |
|
49 |
Returns the claims encoded in the AuthenticationToken |
|
50 |
*/ |
|
51 |
- (nullable FBSDKAuthenticationTokenClaims *)claims; |
|
52 |
|
|
53 |
/** |
|
54 |
Internal Type exposed to facilitate transition to Swift. |
|
55 |
API Subject to change or removal without warning. Do not use. |
|
56 |
|
|
57 |
@warning INTERNAL - DO NOT USE |
|
58 |
*/ |
|
59 |
@property (class, nullable, nonatomic, copy) id<FBSDKTokenCaching> tokenCache; |
|
60 |
|
|
61 |
@end |
|
62 |
|
|
63 |
NS_ASSUME_NONNULL_END |