-
Notifications
You must be signed in to change notification settings - Fork 214
/
Copy pathOAuthManager.h
42 lines (29 loc) · 1.03 KB
/
OAuthManager.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
//
// OAuthManager.h
//
// Created by Ari Lerner on 5/31/16.
// Copyright © 2016 Facebook. All rights reserved.
//
#import <Foundation/Foundation.h>
#if __has_include(<React/RCTBridgeModule.h>)
#import <React/RCTBridgeModule.h>
#else
#import "RCTBridgeModule.h"
#endif
#if __has_include("RCTLinkingManager.h")
#import "RCTLinkingManager.h"
#else
#import <React/RCTLinkingManager.h>
#endif
@class OAuthClient;
static NSString *kAuthConfig = @"OAuthManager";
@interface OAuthManager : NSObject <RCTBridgeModule, UIWebViewDelegate>
+ (instancetype) sharedManager;
+ (BOOL)setupOAuthHandler:(UIApplication *)application;
+ (BOOL)handleOpenUrl:(UIApplication *)application openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication annotation:(id)annotation;
- (BOOL) _configureProvider:(NSString *) name andConfig:(NSDictionary *) config;
- (NSDictionary *) getConfigForProvider:(NSString *)name;
@property (nonatomic, strong) NSDictionary *providerConfig;
@property (nonatomic, strong) NSArray *callbackUrls;
@end