What is the recommended approach to be able to let the users login when the device is offline. We authenticate through a custom service that talks to LDAP and create a user and and we get a sessionId back from SyncGateway. This is true when the device is online.
However when the device is offline, if the user tries to login, do you recommend storing the credentials on CBLite or on some other storage? Do we have to tie the each document that gets inserted in CBLite with the sessionId, so that when the device comes online, the records can be pushed to the server?