From eb7bb1345e826ebe2af9faa0e3e66b01b8f36cbd Mon Sep 17 00:00:00 2001 From: Dan6erbond Date: Tue, 25 May 2021 18:23:46 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=B7=EF=B8=8F=20Fix=20type=20errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/lib/appAuth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" }; }, }), ],