fix(auth): request moderator OAuth scopes only on opt-in
Stop asking for mod scopes at normal login so existing core-only tokens never hit a missing-permissions dialog. Gate moderated-channels Helix, offer an Enable flow for mods/broadcasters, and upgrade atomically. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
2d65aeec29
commit
cc772a7c90
15 changed files with 690 additions and 128 deletions
|
|
@ -1304,8 +1304,9 @@ class USERSTATE {
|
|||
raw: ircMessage.raw,
|
||||
color: ircMessage.tags['color'] ?? color,
|
||||
displayName: ircMessage.tags['display-name'] ?? displayName,
|
||||
mod: ircMessage.tags['mod'] == '0' ? false : true,
|
||||
subscriber: ircMessage.tags['subscriber'] == '0' ? false : true,
|
||||
// Missing tags must be false — the old `!= '0'` default treated absence as mod.
|
||||
mod: ircMessage.tags['mod'] == '1',
|
||||
subscriber: ircMessage.tags['subscriber'] == '1',
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue