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')