Skip to content

Commit 4a89e68

Browse files
committed
Rename to clientInputs
1 parent aff0d47 commit 4a89e68

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

descopesdk/src/main/java/com/descope/android/DescopeFlow.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ class DescopeFlow {
3333
var hooks: List<DescopeFlowHook> = emptyList()
3434

3535
/**
36-
* A map of parameters that will be sent to the flow webpage.
36+
* A map of inputs that will be sent to the flow webpage.
3737
*
38-
* These parameters should conform to basic JSON types, and can be used
38+
* These inputs should conform to basic JSON types, and can be used
3939
* in the flow editor to customize the flow's behavior.
4040
*/
41-
var clientParams: Map<String, Any> = emptyMap()
41+
var clientInputs: Map<String, Any> = emptyMap()
4242

4343
/**
4444
* An object that provides the [DescopeSession] value for the currently authenticated

descopesdk/src/main/java/com/descope/android/DescopeFlowCoordinator.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ class DescopeFlowCoordinator(val webView: WebView) {
273273
ssoRedirect = pickRedirectUrl(flow?.ssoRedirect, flow?.ssoRedirectCustomScheme, useCustomSchemeFallback),
274274
magicLinkRedirect = flow?.magicLinkRedirect ?: "",
275275
isWebAuthnSupported = isWebAuthnSupported,
276-
clientJson = flow?.clientParams?.toJsonObject()?.toString()?.escapeForBackticks() ?: "{}"
276+
clientJson = flow?.clientInputs?.toJsonObject()?.toString()?.escapeForBackticks() ?: "{}"
277277
)
278278
) {}
279279
}
@@ -596,13 +596,13 @@ function flowBridgeSetRefreshJwt(wc, refreshJwt) {
596596
function flowBridgeMergeClientJson(wc, clientJson) {
597597
let client = {}
598598
try {
599-
client = JSON.parse(wc.getAttribute("client") || '{}')
599+
client = JSON.parse(wc.getAttribute('client') || '{}')
600600
} catch (e) {}
601601
client = {
602602
...client,
603603
...JSON.parse(clientJson),
604604
}
605-
wc.setAttribute("client", JSON.stringify(client))
605+
wc.setAttribute('client', JSON.stringify(client))
606606
}
607607
608608
function flowBridgePrepareWebComponent(wc) {

0 commit comments

Comments
 (0)