Skip to content

Commit 041fdb1

Browse files
johnnytomcatJon Haar
andauthored
fix: generate state if no state is passed ios (#735)
Co-authored-by: Jon Haar <jon.haar@ascension-external.org>
1 parent 5398327 commit 041fdb1

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)