End Livestream completes the session: StopStream clears the OAuth session and DPAPI token (crash-safe sign-out)

This commit is contained in:
2026-08-06 11:50:50 -07:00
parent 4afe11e718
commit d97b5d375c
7 changed files with 30 additions and 4 deletions
+6
View File
@@ -39,6 +39,12 @@ public class YouTubeAuthService
CurrentChannel = channel;
}
/// <summary>Signs out: drops the in-memory session (a graceful End Livestream clears the saved token via the caller).</summary>
public void ClearSession()
{
CurrentChannel = null;
}
public string GetAuthorizationUrl(string redirectUri)
{
var query = new[]