CustomInput

To be implemented when the login screen has custom text input fields.

The extension needs to provide the forms.

Properties

Link copied to clipboard
abstract val forms: List<LoginClient.Form>

List of forms to be displayed on the login screen.

Functions

Link copied to clipboard
abstract suspend fun getCurrentUser(): User?

To be called when any other extension needs the current user. Be sure to remove any sensitive data.

Link copied to clipboard
abstract suspend fun onLogin(key: String, data: Map<String, String?>): List<User>

Called when the user submits the login form.

Link copied to clipboard
abstract fun setLoginUser(user: User?)

Called when the extension starts or when the user changes. null if no user is logged in (can also be Incognito mode)