Generate an access token for a Customer user.

This function takes the customers email, password and device information and returns the LoginDetails model, which contains Token.

suspend fun performLogin(
    email: String,
    password: String
): ResponseHolder<ApiLoginResponseDataModel?> {
    val responseHolder = AuthenticationAccountRequests(baseUrl, activity).login(schemeId, email, password)
    if (responseHolder.isSucceed()) {
    return responseHolder

After ApiLoginResponseDataModel was retrieved, the Token needs to be saved manually since it will be needed in every next request

What’s Next