We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 702d697 commit a01c5e1Copy full SHA for a01c5e1
.changeset/spicy-knives-play.md
@@ -0,0 +1,5 @@
1
+---
2
+'react-native-app-auth': patch
3
4
+
5
+Fix authorization state parameter in iOS when using custom configuration
ios/RNAppAuth.m
@@ -348,7 +348,7 @@ - (void)authorizeWithConfiguration: (OIDServiceConfiguration *) configuration
348
scope:[OIDScopeUtilities scopesWithArray:scopes]
349
redirectURL:[NSURL URLWithString:redirectUrl]
350
responseType:OIDResponseTypeCode
351
- state: additionalParameters[@"state"] ? nil : [[self class] generateState]
+ state: additionalParameters[@"state"] ? additionalParameters[@"state"] : [[self class] generateState]
352
nonce:nonce
353
codeVerifier:codeVerifier
354
codeChallenge:codeChallenge
0 commit comments