mirror of
https://github.com/Dan6erbond/sk-auth.git
synced 2024-11-20 19:07:20 +01:00
🏷️ Fix Google and Twitter provider types
This commit is contained in:
parent
feba7dc301
commit
1880e08c42
@ -28,7 +28,11 @@ const defaultConfig: Partial<GoogleOAuth2ProviderConfig> = {
|
||||
profileUrl: "https://openidconnect.googleapis.com/v1/userinfo",
|
||||
};
|
||||
|
||||
export class GoogleOAuth2Provider extends OAuth2Provider<GoogleOAuth2ProviderConfig> {
|
||||
export class GoogleOAuth2Provider extends OAuth2Provider<
|
||||
GoogleProfile,
|
||||
GoogleTokens,
|
||||
GoogleOAuth2ProviderConfig
|
||||
> {
|
||||
constructor(config: GoogleOAuth2ProviderConfig) {
|
||||
super({
|
||||
...defaultConfig,
|
||||
|
@ -12,7 +12,7 @@ const defaultConfig: Partial<TwitterAuthProviderConfig> = {
|
||||
id: "twitter",
|
||||
};
|
||||
|
||||
export class TwitterAuthProvider extends OAuth2BaseProvider<TwitterAuthProviderConfig> {
|
||||
export class TwitterAuthProvider extends OAuth2BaseProvider<any, any, TwitterAuthProviderConfig> {
|
||||
constructor(config: TwitterAuthProviderConfig) {
|
||||
super({
|
||||
...defaultConfig,
|
||||
|
Loading…
Reference in New Issue
Block a user