Issue loggin in from vscode

Heyo I’ve been having issue logging in from the vscode extension, both manual and github login seem to give me the same issue of invalid token, when checking logs I see

█ AutoEdits:createProvider You are not signed in.
█ ChatController updateViewConfig:
█ ChatController updateViewConfig:
█ telemetry-v2 recordEvent: cody.signInNotification.signInButton/clicked:
█ GraphQLTelemetryExporter Error exporting telemetry events:: Error: accessing Sourcegraph HTTP API: CERT_SIGNATURE_FAILURE FetchError: request to https://sourcegraph.com/.api/graphql?RecordTelemetryEvents failed, reason: certificate signature failure (https://sourcegraph.com/.api/graphql?RecordTelemetryEvents)
█ UpstreamHealth Failed to ping upstream host:
█ telemetry-v2 recordEvent: cody.webview.auth/simplifiedSignIngithubClick:
█ GraphQLTelemetryExporter Error exporting telemetry events:: Error: accessing Sourcegraph HTTP API: CERT_SIGNATURE_FAILURE FetchError: request to https://sourcegraph.com/.api/graphql?RecordTelemetryEvents failed, reason: certificate signature failure (https://sourcegraph.com/.api/graphql?RecordTelemetryEvents)
█ auth Authenticating to https://sourcegraph.com/...
█ auth Failed to authenticate to https://sourcegraph.com/ due to invalid credentials or other endpoint error: accessing Sourcegraph HTTP API: CERT_SIGNATURE_FAILURE FetchError: request to https://sourcegraph.com/.api/graphql?CurrentUser failed, reason: certificate signature failure (https://sourcegraph.com/.api/graphql?CurrentUser)
█ telemetry-v2 recordEvent: cody.auth/failed:
█ telemetry-v2 recordEvent: cody.auth.fromCallback.web/succeeded:
█ GraphQLTelemetryExporter Error exporting telemetry events:: Error: accessing Sourcegraph HTTP API: CERT_SIGNATURE_FAILURE FetchError: request to https://sourcegraph.com/.api/graphql?RecordTelemetryEvents failed, reason: certificate signature failure (https://sourcegraph.com/.api/graphql?RecordTelemetryEvents)
█ GraphQLTelemetryExporter Error exporting telemetry events:: Error: accessing Sourcegraph HTTP API: CERT_SIGNATURE_FAILURE FetchError: request to https://sourcegraph.com/.api/graphql?RecordTelemetryEvents failed, reason: certificate signature failure (https://sourcegraph.com/.api/graphql?RecordTelemetryEvents) ```

Hey @guala01

Did you check if your access token is expired? After some days you need to renew the access token in your Sourcegraph user settings and logout and login again. Login via Google is a little bit buggy and may be solved in the future.

If you have Kaspersky as your AV software be sure to switch of URL redirection blocker. This is reported as a false positive and might affect login too.

Hey @PriNova
my tokens look like this


Could it be crowdstrike redirecting it ? It is a work laptop and has that AV installed. Is there any workaround ?

If your work laptop is protected and has additionally a pre-proxy this might be the issue. Talk to your IT admin to whitelist the traffic.