Skip to content

Commit eda97d9

Browse files
committed
docs: add note on auth
1 parent 6f0afc6 commit eda97d9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ It uploads the folder as a TAR archive to a Google Cloud function, which creates
55
The URL of the private sandbox is returned to the CLI, which prints the URL and asks the candidate to send us an email containing the URL.
66

77
The server can be found in the `server/` folder and is deployed manually [as this Google Cloud Function](https://console.cloud.google.com/functions/details/us-central1/submit-coding-exercise?project=sourcegraph-dev) by simply copy-pasting the built JavaScript into the web UI.
8+
9+
The server is authenticated through an environment variable `CODESANDBOX_TOKEN`. This is a JWT that can be obtained through the Codesandbox CLI (`npm i -g codesandbox`) using `codesandbox token` (after logging in once with `codesandbox login`). It must be generated for an admin member of our workspace, so it can create sandboxes.
10+
**Important**: This token expires after one month and needs to be renewed manually. There is currently no workaround for this.

0 commit comments

Comments
 (0)