Skip to content

Commit

Permalink
Remove unused properties from ReauthenticateOptions and PromoteOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
mickmak-busicat committed Sep 5, 2024
1 parent 02983cb commit 7a21657
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion sdk/src/main/java/com/oursky/authgear/AuthgearCore.kt
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ internal class AuthgearCore(
isSsoEnabled = this.isSsoEnabled,
prompt = listOf(PromptOption.LOGIN),
loginHint = loginHint,
state = options.state,
state = null,
xState = options.xState,
uiLocales = options.uiLocales,
colorScheme = options.colorScheme,
Expand Down
4 changes: 0 additions & 4 deletions sdk/src/main/java/com/oursky/authgear/PromoteOptions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ data class PromoteOptions @JvmOverloads constructor(
* Redirection URI to which the response will be sent after authorization.
*/
var redirectUri: String,
/**
* OAuth 2.0 state value.
*/
var state: String? = null,
/**
* Use this parameter to provide parameters from the client application to Custom UI. The string in xState can be accessed by the Custom UI. Ignore this parameter if default AuthUI is used
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ data class ReauthenticateOptions @JvmOverloads constructor(
* Redirection URI to which the response will be sent after authorization.
*/
var redirectUri: String,
/**
* OAuth 2.0 state value.
*/
var state: String? = null,
/**
* Use this parameter to provide parameters from the client application to Custom UI. The string in xState can be accessed by the Custom UI. Ignore this parameter if default AuthUI is used
*/
Expand Down Expand Up @@ -54,7 +50,7 @@ internal fun ReauthenticateOptions.toRequest(idTokenHint: String, isSsoEnabled:
// because no new session should be generated so the scopes are not important.
scope = listOf("openid", "https://authgear.com/scopes/full-access"),
isSsoEnabled = isSsoEnabled,
state = this.state,
state = null,
xState = this.xState,
prompt = null,
loginHint = null,
Expand Down

0 comments on commit 7a21657

Please sign in to comment.