Skip to content

Commit 12a6070

Browse files
authored
fix: generate state if no state is passed ios
Fix applied from FormidableLabs#735
1 parent c0481d6 commit 12a6070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/RNAppAuth.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ - (void)authorizeWithConfiguration: (OIDServiceConfiguration *) configuration
329329
scope:[OIDScopeUtilities scopesWithArray:scopes]
330330
redirectURL:[NSURL URLWithString:redirectUrl]
331331
responseType:OIDResponseTypeCode
332-
state:[[self class] generateState]
332+
state: additionalParameters[@"state"] ? nil : [[self class] generateState]
333333
nonce:nonce
334334
codeVerifier:codeVerifier
335335
codeChallenge:codeChallenge

0 commit comments

Comments
 (0)