Login on Android in offline mode

User authentication in offline mode is an application level concern. Couchbase Lite does not make any assumptions about what kind of data it contains, and it does not have any knowledge of users. It only knows abstract data. The authentication you are referring to is only used during replication, and at no other time. The authentication happens on the server side, not the client side. So you need to develop this functionality yourself according to your needs.