🏷️ Fix Google and Twitter provider types

This commit is contained in:
RaviAnand Mohabir 2021-05-24 21:14:55 +02:00
parent feba7dc301
commit 1880e08c42
2 changed files with 6 additions and 2 deletions

View File

@ -28,7 +28,11 @@ const defaultConfig: Partial<GoogleOAuth2ProviderConfig> = {
profileUrl: "https://openidconnect.googleapis.com/v1/userinfo", profileUrl: "https://openidconnect.googleapis.com/v1/userinfo",
}; };
export class GoogleOAuth2Provider extends OAuth2Provider<GoogleOAuth2ProviderConfig> { export class GoogleOAuth2Provider extends OAuth2Provider<
GoogleProfile,
GoogleTokens,
GoogleOAuth2ProviderConfig
> {
constructor(config: GoogleOAuth2ProviderConfig) { constructor(config: GoogleOAuth2ProviderConfig) {
super({ super({
...defaultConfig, ...defaultConfig,

View File

@ -12,7 +12,7 @@ const defaultConfig: Partial<TwitterAuthProviderConfig> = {
id: "twitter", id: "twitter",
}; };
export class TwitterAuthProvider extends OAuth2BaseProvider<TwitterAuthProviderConfig> { export class TwitterAuthProvider extends OAuth2BaseProvider<any, any, TwitterAuthProviderConfig> {
constructor(config: TwitterAuthProviderConfig) { constructor(config: TwitterAuthProviderConfig) {
super({ super({
...defaultConfig, ...defaultConfig,