android-components / mozilla.components.service.fxa / FirefoxAccount / toJSONString

toJSONString

fun toJSONString(): String (source)

Saves the current account's authentication state as a JSON string, for persistence in the Android KeyStore/shared preferences. The authentication state can be restored using FirefoxAccount.fromJSONString.

Return
String containing the authentication details in JSON format