Repository navigation
Settings API for the YouTube pairing token (#136) - #425
Merged
Merged
Conversation
Member
Author
|
/mira resume |
Contributor
|
/mira pause |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Adds settings.youtubePairing() and resetYouTubePairing(), served as POST /api/settings/youtube/pairing and /pairing/reset (POST so the session check applies). Reset stores a new token, and the bridge rejects the old one straight away and drops its tabs.
rowkav09
force-pushed
the
feat/youtube-pairing-api
branch
from
September 24, 2026 13:21
eb3306c to
52d798c
Compare
Member
Author
|
No review from Mira (auto-paused). Self-reviewed: both routes are POST so the session check applies; sec-fetch-site checked; 404 when the bridge is off; reset makes the old token 401 at once and clears its tabs (tested end to end). Rebased; all checks green. |
This was referenced Sep 24, 2026
rowkav09
added a commit
that referenced
this pull request
Sep 24, 2026
This was referenced Sep 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #136. Backend for the pairing-code page (the page itself goes to the web UI lane).
POST /api/settings/youtube/pairing→{ token }POST /api/settings/youtube/pairing/reset→{ token }(new token saved to the credential store; the bridge rejects the old token at once and drops its tabs)Both are POST so the server session check applies: only the app's own settings page can read the token. 404 when the bridge is off (safe mode). Tests: 753 pass.