A secure web-based tool for refreshing LG WebOS developer mode session tokens. This project ensures your tokens are stored securely and refreshes them periodically with the LG Developer API.
- Web Interface
- API for CLI calls
- Automated Refresh:
- Periodically refreshes stored tokens with the LG Developer API.
- Security:
- Tokens are hashed using SHA-256 to ensure uniqueness without storing plaintext. This is used to reject duplicate entries, and to allow deletion of your token.
- Encrypted tokens are stored securely using an environment-provided encryption key.
- No Ads
- Open Source
Anyone can run an instance for this, although I'm not sure why anybody would really want to. However, if you decide to and want to share it then make a PR and add it here.
- Web UI (lg.pirate.vodka)
- API via
curl
Command:
curl -X POST -d "key=YOUR_TOKEN_HERE&action=add" -H "Accept: application/json" https://lg.pirate.vodka
- Web UI (lg.pirate.vodka)
- API via
curl
Command:
curl -X POST -d "key=YOUR_TOKEN_HERE&action=remove" -H "Accept: application/json" https://lg.pirate.vodka
- Docker
- Docker Compose
- An active LG WebOS developer account.
git clone https://github.com/LucifersCircle/webOS-Token-Refresh.git
cd webOS-Token-Refresh
ENCRYPTION_KEY
: A secure encryption key for token storage.SCRIPT_INTERVAL
: (Optional) Interval for the task runner to refresh tokens, in seconds (default: 86400).source: /path/to/db/dir
: Add the directory you want to store keys.db inside.Ex. /home/username/db
docker-compose up --build
Navigate to http://localhost:5000
in your browser.
- Python (Flask)
- SQLite
- Gunicorn (production server)
- Docker
- Application and task runner logs are accessible via Docker.
Contributions are welcome! Please fork the repository and submit a pull request.
This project is licensed under the GPL-3.0 License. See LICENSE
for details.