Skip to content

Commit

Permalink
Fixed auth request creation
Browse files Browse the repository at this point in the history
  • Loading branch information
changesbyjames committed Nov 15, 2024
1 parent f9e693c commit 2433a7d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions census/api/src/services/auth/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ import { useEnvironment } from '../../utils/env/env.js';
const scopes: string[] = [];
export const createSignInRequest = (path: string, state: string) => {
const env = useEnvironment();
let origin = `http://${env.variables.HOST}:${env.variables.PORT}`;
if (env.variables.API_URL) {
origin = env.variables.API_URL;
}
const origin = getHost();

const url = new URL('https://id.twitch.tv/oauth2/authorize');
url.searchParams.set('client_id', env.variables.TWITCH_CLIENT_ID);
Expand Down

0 comments on commit 2433a7d

Please sign in to comment.