apply

fun apply(json: String)

Applies a JSON configuration, using the same keys as iOS: consumerKey, redirectUri, communityUrl, useDPoP, useHybridFlow and authenticationMode (native or browser). Absent keys keep their current value. Nothing is saved when the JSON or the resulting Native Login configuration is invalid.

Throws

When json is malformed, a value has the wrong type, or the resulting mode is Native with an incomplete configuration

When the settings are not isAvailable