You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,10 +130,11 @@ with optional overrides.
130
130
-**register** - (`{ [key: string]: value }`) headers to be passed during registration request.
131
131
-**useNonce** - (`boolean`) _IOS_ (default: true) optionally allows not sending the nonce parameter, to support non-compliant providers
132
132
-**usePKCE** - (`boolean`) (default: true) optionally allows not sending the code_challenge parameter and skipping PKCE code verification, to support non-compliant providers.
133
+
-**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)
133
134
134
135
#### result
135
136
136
-
This is the result from the auth server
137
+
This is the result from the auth server:
137
138
138
139
-**accessToken** - (`string`) the access token
139
140
-**accessTokenExpirationDate** - (`string`) the token expiration date
@@ -143,6 +144,7 @@ This is the result from the auth server
143
144
-**refreshToken** - (`string`) the refresh token
144
145
-**tokenType** - (`string`) the token type, e.g. Bearer
145
146
-**scopes** - ([`string`]) the scopes the user has agreed to be granted
147
+
-**authorizationCode** - (`string`) the authorization code (only if `skipCodeExchange=true`)
146
148
147
149
### `refresh`
148
150
@@ -332,6 +334,19 @@ Add the following code to `AppDelegate.m` (to support iOS 10 and below)
332
334
+ }
333
335
```
334
336
337
+
If you want to support universal links, add the following to `AppDelegate.m` under `continueUserActivity`
338
+
339
+
```diff
340
+
+ if ([userActivity.activityType isEqualToString:NSUserActivityTypeBrowsingWeb]) {
#### Integration of the library with a Swift iOS project
336
351
337
352
The approach mentioned should work with Swift. In this case one should make `AppDelegate` conform to `RNAppAuthAuthorizationFlowManager`. Note that this is not tested/guaranteed by the maintainers.
0 commit comments