From baeddfc344f17eb31616af3c9b615dfe4650d628 Mon Sep 17 00:00:00 2001 From: Nick Kosarev Date: Wed, 19 Jun 2024 18:24:14 +0200 Subject: [PATCH] fix --- src/lib/components/Profile.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/Profile.svelte b/src/lib/components/Profile.svelte index 4863a4bc..9446569b 100644 --- a/src/lib/components/Profile.svelte +++ b/src/lib/components/Profile.svelte @@ -4,8 +4,8 @@ import twitchIcon from '$lib/assets/website/icons/twitch/112.png' const url = new URL('https://id.twitch.tv/oauth2/authorize') - url.searchParams.set('client_id', env.PUBLIC_TWITCH_CLIENT_ID) - url.searchParams.set('redirect_uri', env.PUBLIC_SIGNIN_REDIRECT_URL) + url.searchParams.set('client_id', env.PUBLIC_TWITCH_CLIENT_ID ?? '') + url.searchParams.set('redirect_uri', env.PUBLIC_SIGNIN_REDIRECT_URL ?? '') url.searchParams.set('response_type', 'token') url.searchParams.set('scope', 'chat:read channel:read:redemptions')