Skip to main content

userRequestedLogin

Description

Observable field that indicates when the user has tapped the "Login" button within the SDK.

Type

boolean

Usage

m.lib.observeField("userRequestedLogin", "onUserRequestedLogin")

function onUserRequestedLogin(event as Object)
loginRequested = event.getData()
if loginRequested then
' User wants to log in
showLoginScreen()
end if
end function

Best Practices

  • Respond promptly to login requests
  • Maintain user context during login flow
  • Update SDK config with auth credentials after successful login
  • Provide clear feedback about login state