Skip to content

Commit 14ef797

Browse files
authored
Merge pull request #165 from FormidableLabs/hotfix/readme-update
Fix readme iOS instructions
2 parents 7c48021 + f3781fa commit 14ef797

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,19 +268,19 @@ Furthermore, `RNAppAuth` expects the delegate instance to conform to the protoco
268268
Make `AppDelegate` conform to `RNAppAuthAuthorizationFlowManager` with the following changes to `AppDelegate.h`:
269269

270270
```diff
271-
#import <RNAppAuth/RNAppAuthAuthorizationFlowManager.h>
271+
+ #import "RNAppAuthAuthorizationFlowManager.h"
272272

273273
- @interface AppDelegate : UIResponder <UIApplicationDelegate>
274274
+ @interface AppDelegate : UIResponder <UIApplicationDelegate, RNAppAuthAuthorizationFlowManager>
275275

276-
@property(nonatomic, weak)id<RNAppAuthAuthorizationFlowManagerDelegate>authorizationFlowManagerDelegate;
276+
+ @property(nonatomic, weak)id<RNAppAuthAuthorizationFlowManagerDelegate>authorizationFlowManagerDelegate;
277277
```
278278

279279
The authorization response URL is returned to the app via the iOS openURL app delegate method, so
280280
you need to pipe this through to the current authorization session (created in the previous
281281
instruction). Thus, implement the following method from `UIApplicationDelegate` in `AppDelegate.m`:
282282

283-
```
283+
```swift
284284
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *, id> *)options {
285285
return [self.authorizationFlowManagerDelegate resumeExternalUserAgentFlowWithURL:url];
286286
}

0 commit comments

Comments
 (0)