feat: use token from local fs path #471
Merged
+52
−15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context: https://sourcegraph.slack.com/archives/C05AGQYD528/p1690833224615029?thread_ts=1690216157.663499&channel=C05AGQYD528&message_ts=1690833224.615029
For users that do not have keychain available on their local machine, they can define the absolute path of the file that has the token available in JSON format.
Step 1: Sign into Cody with a valid token
Step 2: Create a JSON file to store the token you used to log in from Step 1 using the following format, save the file as
token.json
:Step 3: in Command Palette, select
Open User Settings (JSON)
and add the following field:Step 4: Replace
/Users/username/token.json
with the file path created from Step 2Step 5: Reload VS Code, you should still be signed into VS Code
Test plan
Follow the steps as described above