🏷️ Fix type errors

This commit is contained in:
Dan6erbond 2021-05-25 18:23:46 +02:00
parent 3b11b06ac1
commit eb7bb1345e

View File

@ -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" };
},
}),
],