Skip to content

Commit

Permalink
cody: fix callback route for dotcom (#53418)
Browse files Browse the repository at this point in the history
  • Loading branch information
abeatrix authored and ErikaRS committed Jun 22, 2023
1 parent 74a28bd commit a0c8575
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions client/cody/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Starting from `0.2.0`, Cody is using `major.EVEN_NUMBER.patch` for release versi

### Fixed

- `Continue with Sourcegraph.com` callback URL. [pull/53418](https://github.com/sourcegraph/sourcegraph/pull/53418)

### Changed

- Simplified the appearance of commands in various parts of the UI [pull/53395](https://github.com/sourcegraph/sourcegraph/pull/53395)
Expand Down
2 changes: 1 addition & 1 deletion client/cody/webviews/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const Login: React.FunctionComponent<React.PropsWithChildren<LoginProps>>
}) => {
const [token, setToken] = useState<string>('')
const [endpoint, setEndpoint] = useState(serverEndpoint)
const authUri = new URL('https://sourcegraph/user/settings/tokens/new/callback')
const authUri = new URL('https://sourcegraph.com/user/settings/tokens/new/callback')
authUri.searchParams.append('requestFrom', callbackScheme === 'vscode-insiders' ? 'CODY_INSIDERS' : 'CODY')

const onSubmit = useCallback<React.FormEventHandler>(
Expand Down

0 comments on commit a0c8575

Please sign in to comment.