commit | author | age
|
a0a843
|
1 |
// |
H |
2 |
// TWTRTokenOnlyAuthSession.h |
|
3 |
// TwitterCore |
|
4 |
// |
|
5 |
// Created by Chase Latta on 6/12/15. |
|
6 |
// Copyright (c) 2015 Twitter. All rights reserved. |
|
7 |
// |
|
8 |
|
|
9 |
#import <Foundation/Foundation.h> |
|
10 |
#import "TWTRAuthSession.h" |
|
11 |
|
|
12 |
NS_ASSUME_NONNULL_BEGIN |
|
13 |
|
|
14 |
@interface TWTRTokenOnlyAuthSession : NSObject <TWTRAuthSession> |
|
15 |
|
|
16 |
@property (nonatomic, copy, readonly) NSString *authToken; |
|
17 |
|
|
18 |
@property (nonatomic, copy, readonly) NSString *authTokenSecret; |
|
19 |
|
|
20 |
/** |
|
21 |
* This value is here to satisfy TWTRAuthSession protocol but |
|
22 |
* it defaults to an empty string and cannot be updated. |
|
23 |
*/ |
|
24 |
@property (nonatomic, copy, readonly) NSString *userID; |
|
25 |
|
|
26 |
- (instancetype)initWithToken:(NSString *)authToken secret:(NSString *)authTokenSecret; |
|
27 |
+ (instancetype)authSessionWithToken:(NSString *)authToken secret:(NSString *)authTokenSecret; |
|
28 |
|
|
29 |
@end |
|
30 |
|
|
31 |
NS_ASSUME_NONNULL_END |