NativeAuthenticationManager

open class NativeAuthenticationManager(viewUpdate: (UserSessionInfo?) -> Unit) : KoinComponent

Constructors

Link copied to clipboard
constructor(viewUpdate: (UserSessionInfo?) -> Unit)

Functions

Link copied to clipboard
Link copied to clipboard
open fun getKoin(): Koin
Link copied to clipboard
Link copied to clipboard

Set the cached UserSessionInfo. This should only be used for migrating apps using old Bridge client libraries. This will do nothing if there already is a session.

Link copied to clipboard
open fun notifyUIOfBridgeError(statusCode: HttpStatusCode)
Link copied to clipboard
fun observeAppStatus(handler: (AppStatus) -> Unit)
Link copied to clipboard
Link copied to clipboard
fun onCleared()
Link copied to clipboard
open fun reauth(completion: (Error?) -> Unit)
Link copied to clipboard

Attempt to reauthorize the participant using their stored password.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun signInEmail(userName: String, password: String, callBack: (UserSessionInfo?, ResourceStatus) -> Unit)
Link copied to clipboard
fun signInExternalId(externalId: String, password: String?, callBack: (UserSessionInfo?, ResourceStatus) -> Unit)
Link copied to clipboard
fun signOut()
Link copied to clipboard
fun signUpEmail(email: String, password: String, callBack: (Boolean) -> Unit)
fun signUpEmail(email: String, password: String, testUser: Boolean, dataGroups: List<String>?, name: String?, sharingScope: SharingScope?, callBack: (Boolean) -> Unit)