From 1880e08c42e3981df89d69ee60e10dd22608ca2a Mon Sep 17 00:00:00 2001 From: RaviAnand Mohabir Date: Mon, 24 May 2021 21:14:55 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=B7=EF=B8=8F=20Fix=20Google=20and=20Tw?= =?UTF-8?q?itter=20provider=20types?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/providers/google.ts | 6 +++++- src/providers/twitter.ts | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/providers/google.ts b/src/providers/google.ts index a85128c..83e3faf 100644 --- a/src/providers/google.ts +++ b/src/providers/google.ts @@ -28,7 +28,11 @@ const defaultConfig: Partial = { profileUrl: "https://openidconnect.googleapis.com/v1/userinfo", }; -export class GoogleOAuth2Provider extends OAuth2Provider { +export class GoogleOAuth2Provider extends OAuth2Provider< + GoogleProfile, + GoogleTokens, + GoogleOAuth2ProviderConfig +> { constructor(config: GoogleOAuth2ProviderConfig) { super({ ...defaultConfig, diff --git a/src/providers/twitter.ts b/src/providers/twitter.ts index 83b3ac0..b6a5696 100644 --- a/src/providers/twitter.ts +++ b/src/providers/twitter.ts @@ -12,7 +12,7 @@ const defaultConfig: Partial = { id: "twitter", }; -export class TwitterAuthProvider extends OAuth2BaseProvider { +export class TwitterAuthProvider extends OAuth2BaseProvider { constructor(config: TwitterAuthProviderConfig) { super({ ...defaultConfig,