Authentication

Authentication

The AuthenticationController gives you ways to authenticate yourself against the backend to perform any kind of action.

The AuthenticationController does not handle login! For that use the UserManager login() function.

QrCode

At the moment the AuthenticationController gives you a stream of QrCode that let you open doors.

authenticationController.getQrCodes().collect { result: Result<QrCode> ->
    val qrCode: QrCode? = result.getOrNull()
}

Our SDK is Kotlin and Coroutines first. So the main API will offer suspend functions or return Flow. We also provide support functions that uses Callback API or LiveData in case you can not use Coroutines (or even Kotlin).