-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add channel:read:subscriptions scope (#176)
- Loading branch information
Showing
3 changed files
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
14 changes: 14 additions & 0 deletions
14
app/server/db/seeders/20210228083955-add-twitch-sub-scope.js
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const scope = require("../twitch-scopes"); | ||
const Setting = require("../Models/Setting"); | ||
|
||
const newScope = [...scope, "channel:read:subscriptions"]; | ||
|
||
module.exports = { | ||
up: async () => { | ||
await Setting.update( | ||
{ value: JSON.stringify(newScope) }, | ||
{ where: { key: "twitch.scope" } } | ||
); | ||
}, | ||
down: async () => {}, | ||
}; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = [ | ||
"user:read:email", | ||
"chat:read", | ||
"chat:edit", | ||
"channel:read:redemptions", | ||
"channel:manage:redemptions", | ||
"bits:read", | ||
]; |