Skip to content

Commit 7a89a79

Browse files
author
Jesus Hernandez
committed
Updated readme
1 parent d94dd7e commit 7a89a79

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ with optional overrides.
128128
- **register** - (`{ [key: string]: value }`) headers to be passed during registration request.
129129
- **useNonce** - (`boolean`) _IOS_ (default: true) optionally allows not sending the nonce parameter, to support non-compliant providers
130130
- **usePKCE** - (`boolean`) (default: true) optionally allows not sending the code_challenge parameter and skipping PKCE code verification, to support non-compliant providers.
131+
- **skipCodeExchange** - (`boolean`) (default: false) just return the authorization response, instead of automatically exchanging the authorization code. This is useful if this exchange needs to be done manually (not client-side)
131132

132133
#### result
133134

@@ -330,6 +331,19 @@ Add the following code to `AppDelegate.m` (to support iOS 10 and below)
330331
+ }
331332
```
332333
334+
If you want to support universal links, add the following to `AppDelegate.m` under `continueUserActivity`
335+
336+
```diff
337+
+ if ([userActivity.activityType isEqualToString:NSUserActivityTypeBrowsingWeb]) {
338+
+ if (self.authorizationFlowManagerDelegate) {
339+
+ BOOL resumableAuth = [self.authorizationFlowManagerDelegate resumeExternalUserAgentFlowWithURL:userActivity.webpageURL];
340+
+ if (resumableAuth) {
341+
+ return YES;
342+
+ }
343+
+ }
344+
+ }
345+
```
346+
333347
#### Integration of the library with a Swift iOS project
334348
335349
The approach mentioned above should also be possible to employ with Swift. In this case one should have to import `RNAppAuth`

0 commit comments

Comments
 (0)