[Solved] How to store login/password inside TW file?

I want to use Noteself in my Android from standalone file. And this work and connect with my instance of CouchDB perfectly.

But it constantly asks login and password (when I press “Offline” button). So question is: how to modify file (or whatever) to store my login/password inside file? I’m ready to prepare such file from upstream Noteself manually (to sync over my devices).

Thank you for any help :slight_smile:

1 Like

I’m having the seame problem on different devices (Mac/Windows/Linux).
When I open the page, it always asks for my Cloudant username and password to sync. This has started recently.

When I log in, it does everything, until the new session. Is there a setting to save this?

Hello @Oddly thanks for the report.
Could you please post one snapshot of the chrome debug console? It opens with F12 key.
Thanks in advance.

replying to the original issue, your server should answer with a cookie that is the responsible of keeping you authorised. This is the preferred way because such cookie is not accesible by the underliying javascript code, making it more secure. Do you know how to inspect your network headers? It is something like this:

Got It! I added more expiration time to cookies in my CouchDB instance (doc here: https://docs.couchdb.org/en/2.3.1/config/auth.html#couch_httpd_auth/timeout )
and now it works well!

Thank you very much!

1 Like

Glad you figured it out!!! And thank you for the link to the documentation.

Sorry, forgot about this topic. Solved the problem for me as well! Thanks!