mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-10-02 13:02:49 +08:00
fix(spotify): apply UI-entered Client ID to live SpotifyOAuth without restart [whole-branch I2]
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
399cf0cf41
commit
d796dd48ff
5 files changed
+149
No files matched your search
@@ -148,6 +148,14 @@ export class SpotifyOAuth {
|
||||
}
|
||||
}
|
||||
|
||||
/** Update the operator's app credentials at runtime (from Settings save) so
|
||||
* a UI-entered Client ID takes effect without a process restart. Empty
|
||||
* clientId disables OAuth (isAuthorized()/buildAuthorizeUrl() gate on it). */
|
||||
configure(clientId?: string, redirectUri?: string): void {
|
||||
this.clientId = clientId?.trim() || "";
|
||||
this.redirectUri = redirectUri || "";
|
||||
}
|
||||
|
||||
getClientId(): string {
|
||||
return this.clientId;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user