File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -268,19 +268,19 @@ Furthermore, `RNAppAuth` expects the delegate instance to conform to the protoco
268
268
Make ` AppDelegate ` conform to ` RNAppAuthAuthorizationFlowManager ` with the following changes to ` AppDelegate.h ` :
269
269
270
270
``` diff
271
- # import <RNAppAuth/ RNAppAuthAuthorizationFlowManager.h>
271
+ + #import " RNAppAuthAuthorizationFlowManager.h"
272
272
273
273
- @interface AppDelegate : UIResponder <UIApplicationDelegate>
274
274
+ @interface AppDelegate : UIResponder <UIApplicationDelegate, RNAppAuthAuthorizationFlowManager>
275
275
276
- @property(nonatomic, weak)id<RNAppAuthAuthorizationFlowManagerDelegate>authorizationFlowManagerDelegate;
276
+ + @property(nonatomic, weak)id<RNAppAuthAuthorizationFlowManagerDelegate>authorizationFlowManagerDelegate;
277
277
```
278
278
279
279
The authorization response URL is returned to the app via the iOS openURL app delegate method, so
280
280
you need to pipe this through to the current authorization session (created in the previous
281
281
instruction). Thus, implement the following method from ` UIApplicationDelegate ` in ` AppDelegate.m ` :
282
282
283
- ```
283
+ ``` swift
284
284
- (BOOL)application: (UIApplication * )app openURL: (NSURL * )url options: (NSDictionary< NSString * , id> * )options {
285
285
return [self .authorizationFlowManagerDelegate resumeExternalUserAgentFlowWithURL: url];
286
286
}
You can’t perform that action at this time.
0 commit comments