Skip to content

Commit

Permalink
Construct redirect uri dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
RubyMineshaft committed Aug 2, 2024
1 parent 8716fde commit 6bf3ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/GoTV/useTwitchIntegration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { usePreference } from "preferences";
// Client ID will need to be the OGS client ID, probably from environment variable?
// Redirect URI also needs to match the allowed redirect URIs in the console at dev.twitch.tv
const TWITCH_CLIENT_ID = "z00yx3qzdzkh10c6nxku6tqm1pxrgv"; // cspell:disable-line
const REDIRECT_URI = "http://localhost:8080/settings/gotv";
const REDIRECT_URI = `${window.location.protocol}//${window.location.host}/settings/gotv`;

export interface FollowedChannel {
broadcaster_id: string;
Expand Down

0 comments on commit 6bf3ec8

Please sign in to comment.