token helper: render auth link as a scannable QR PNG
Some checks failed
Release / semantic-release (push) Successful in 26s
tests / Unit tests (Linux, Python 3.11) (push) Successful in 9m54s
Release / build-linux (push) Failing after 7m13s
Release / build-windows (push) Has been cancelled
Release / build-macos (arm64, macos-latest) (push) Has been cancelled
Release / build-macos (x64, macos-15-intel) (push) Has been cancelled
Release / release-main (push) Has been cancelled
Release / release-develop (push) Has been cancelled

get-token.ts now writes the Remote Auth URL as a 512x512 QR image
(/tmp/javis_qr.png, override via QR_OUT) in addition to printing the link, so
it can be sent to the user and scanned from a second screen with the Discord
mobile app. Adds the qrcode dependency.
This commit is contained in:
javis-bot
2026-06-09 21:03:31 +09:00
parent f80a6fa0ba
commit 7aac92fc2c
3 changed files with 22 additions and 5 deletions

View File

@@ -16,7 +16,8 @@
"dotenv": "^16.4.5",
"libsodium-wrappers": "^0.7.15",
"opusscript": "^0.1.1",
"prism-media": "^1.3.5"
"prism-media": "^1.3.5",
"qrcode": "^1.5.4"
},
"optionalDependencies": {
"@dank074/discord-video-stream": "^6.0.0",
@@ -24,6 +25,7 @@
},
"devDependencies": {
"@types/node": "^22.7.0",
"@types/qrcode": "^1.5.6",
"typescript": "^5.6.3"
}
}