fix comment for twitch login

This commit is contained in:
Lakhan Samani 2023-12-02 12:22:27 +05:30
parent e49e315967
commit d7da81d308

View File

@ -722,8 +722,6 @@ func processTwitchUserInfo(ctx context.Context, code string) (*models.User, erro
log.Debug("Failed to extract ID Token from OAuth2 token") log.Debug("Failed to extract ID Token from OAuth2 token")
return nil, fmt.Errorf("unable to extract id_token") return nil, fmt.Errorf("unable to extract id_token")
} }
// we need to skip issuer check because for common tenant it will return internal issuer which does not match
verifier := oauth.OIDCProviders.TwitchOIDC.Verifier(&oidc.Config{ verifier := oauth.OIDCProviders.TwitchOIDC.Verifier(&oidc.Config{
ClientID: oauth.OAuthProviders.TwitchConfig.ClientID, ClientID: oauth.OAuthProviders.TwitchConfig.ClientID,
SkipIssuerCheck: true, SkipIssuerCheck: true,
@ -744,4 +742,3 @@ func processTwitchUserInfo(ctx context.Context, code string) (*models.User, erro
return user, nil return user, nil
} }