Skip to content

Commit

Permalink
Bumping electron versions and adding a note about DCF to the "main" e…
Browse files Browse the repository at this point in the history
…lectron example
  • Loading branch information
BarryCarlyon committed Dec 28, 2023
1 parent 3092691 commit b67ae8c
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 24 deletions.
6 changes: 6 additions & 0 deletions authentication/electron/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ This solution requires a page on your own server that acts as a valid "redirect"

An example [capture page](webpage) is provided, it uses a bit of javascript will detect the present of a token and then cause the webpage to redirect to the Deep Link URI, and then the Electron App will pick it up, determine the ClientID and away it goes!

## Device Code Flow

Since Twitch has now made available [Device Code Flow](https://dev.twitch.tv/docs/authentication/getting-tokens-oauth/#device-code-grant-flow) this approach is redundant as the DCF flow is much preferred.

For a DCF example pop over to [here](../authentication/electron_devicecode/) instead!

## Methods

There are two methods you can use here.
Expand Down
14 changes: 7 additions & 7 deletions authentication/electron/program/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion authentication/electron/program/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"license": "WTFPL",
"devDependencies": {
"electron": "^28.0.0"
"electron": "^28.1.0"
},
"dependencies": {
"electron-fetch": "^1.9.1"
Expand Down
14 changes: 7 additions & 7 deletions authentication/electron_devicecode/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion authentication/electron_devicecode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"start": "electron ."
},
"devDependencies": {
"electron": "^28.0.0"
"electron": "^28.1.0"
},
"dependencies": {
"electron-fetch": "^1.9.1",
Expand Down
14 changes: 7 additions & 7 deletions player/electron/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion player/electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"author": "",
"license": "WTFPL",
"devDependencies": {
"electron": "^28.0.0"
"electron": "^28.1.0"
}
}

0 comments on commit b67ae8c

Please sign in to comment.