The nix-bundled rbw (1.13.2) had a protocol mismatch with newer system rbw-agent versions. The agent sends environment variables as byte arrays, but rbw 1.13.2 expects base64-encoded strings, causing: rbw unlocked: failed to parse message '...': invalid type: sequence, expected base64 encoded os string By not bundling rbw in the nix package, the script uses the system rbw which matches the running rbw-agent and can communicate correctly. Fixes gcr-tth
Google Cookie Retrieval
This is a simple Selenium script used to quickly run through the Mautrix Google Chat Authentication Process.
It was written primarily with goose (honk!).
The goal: Automate this
-
Open a private chat with the bridge bot. Usually @googlechatbot:your.server.
- If the bot doesn't accept the invite, see the troubleshooting page
-
Open https://chat.google.com in a private browser window and log in normally, then extract cookies:
- Press F12 to open developer tools.
- select the "Application" (Chrome) or "Storage" (Firefox) tab.
- In the sidebar, expand "Cookies" and select https://chat.google.com.
- In the cookie list, find the COMPASS, SSID, SID, OSID and HSID rows.
- When using Firefox, you may have multiple COMPASS cookies with different paths. Pick the one where path is /.
- Form a JSON object with the extracted cookies. It should look something like this (field names are case-insensitive):
{ "compass": "dynamite-ui=...", "ssid": "...", "sid": "...", "osid": "...", "hsid": "..." }- Close the browser window to prevent the cookies being invalidated (Google uses refresh tokens, so you need to close the window within a few minutes).
-
Send login-cookie {the json object} to the bot.
Recent chats should now get portals automatically. Other chats will get portals as you receive messages.
Description
Languages
Python
82%
Nix
18%