Skip to content

Commit

Permalink
Fix authorization state parameter in iOS (#847)
Browse files Browse the repository at this point in the history
* try fixing bug

* chore: add changeset

---------

Co-authored-by: Adam Miller <adam@banyansecurity.io>
Co-authored-by: Rob Walker <hi@robwalker.co>
  • Loading branch information
3 people authored Sep 6, 2023
1 parent 702d697 commit a01c5e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/spicy-knives-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'react-native-app-auth': patch
---

Fix authorization state parameter in iOS when using custom configuration
2 changes: 1 addition & 1 deletion ios/RNAppAuth.m
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ - (void)authorizeWithConfiguration: (OIDServiceConfiguration *) configuration
scope:[OIDScopeUtilities scopesWithArray:scopes]
redirectURL:[NSURL URLWithString:redirectUrl]
responseType:OIDResponseTypeCode
state: additionalParameters[@"state"] ? nil : [[self class] generateState]
state: additionalParameters[@"state"] ? additionalParameters[@"state"] : [[self class] generateState]
nonce:nonce
codeVerifier:codeVerifier
codeChallenge:codeChallenge
Expand Down

0 comments on commit a01c5e1

Please sign in to comment.