diff --git a/app/src/lib/appAuth.ts b/app/src/lib/appAuth.ts index 915f929..315fa63 100644 --- a/app/src/lib/appAuth.ts +++ b/app/src/lib/appAuth.ts @@ -33,8 +33,8 @@ export const appAuth = new SvelteKitAuth({ apiKey: import.meta.env.VITE_REDDIT_API_KEY, apiSecret: import.meta.env.VITE_REDDIT_API_SECRET, profile(profile) { - profile = RedditOAuth2Provider.profileHandler(profile); - return { ...profile, provider: "reddit" }; + const slim = RedditOAuth2Provider.profileHandler(profile); + return { ...slim, provider: "reddit" }; }, }), ],