Auth Screen View Model

The AuthScreenViewModel class is the support class used to execute the authentication requests to the backend

Author

N7ghtm4r3 - Tecknobit

See also

EquinoxAuthViewModel
EquinoxViewModel
ViewModel
FetcherManagerWrapper

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
lateinit var isAdmin: MutableState<Boolean>

isAdmin -> whether the user who trying to authenticate is an ADMIN

Link copied to clipboard

isAdminSignUp -> whether the user is an ADMIN and the auth operation is a sign-up operation

Functions

Link copied to clipboard
open fun launchApp(response: <Error class: unknown class>, name: String, surname: String, language: String, vararg custom: Any?)

Method to launch the application after the authentication request, will be instantiated with the user details both the requester and the localUser

Link copied to clipboard
fun login()

Method to execute the authentication ope