🔧 Update usage of env variables

This commit is contained in:
RaviAnand Mohabir 2021-05-26 00:14:46 +02:00
parent efefe711fc
commit f1ab916642

View File

@ -20,8 +20,8 @@ export const appAuth = new SvelteKitAuth({
}, },
}), }),
new TwitchOAuth2Provider({ new TwitchOAuth2Provider({
clientId: import.meta.env.VITE_TWITCH_OAUTH_CLIENT_ID, clientId: process.env.TWITCH_OAUTH_CLIENT_ID,
clientSecret: import.meta.env.VITE_TWITCH_OAUTH_CLIENT_SECRET, clientSecret: process.env.TWITCH_OAUTH_CLIENT_SECRET,
profile(profile) { profile(profile) {
return { ...profile, provider: "twitch" }; return { ...profile, provider: "twitch" };
}, },