Skip to content

Commit

Permalink
secrets description changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Vsevolod committed Dec 10, 2024
1 parent cea45de commit f30e3cb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions module/move/gspread/.secret/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ CLIENT_ID=YOUR_CLIENT_ID
CLIENT_SECRET=YOUR_SECRET_KEY
```

In most cases, only these two secrets are required.
## 3. Why do we need it?

After executing each command, you need to grant the GSPREAD program access to the Google API. You will receive a link that begin with 'Please direct your browser to https://....' that will redirect you to your browser, where you must authorize the access. You will need to select the appropriate Google account that has the credentials for the application. The **CLIENT_ID** and **CLIENT_SECRET** are set up to do this process.

# Troubleshooting
## 4. Troubleshooting

If you encounter problems with authentication or tokens, you will most likely need to add **AUTH_URI** or **TOKEN_URI** to the .env file. In such case all 4 secrets are requeired. To retrieve them, download the API key you created in JSON format. Open the file and copy the keys into the .env file. After making these changes, your .env file should look like this:
If you encounter a page displaying an error instead of the Google account selection screen, it is likely that you need to add **AUTH_URI** or **TOKEN_URI** to the .env file. In this case, all four secrets are required. To retrieve them, download the API key you created in JSON format. Open the file and copy the necessary keys into the .env file. After making these changes, your .env file should look like this:

```bash
CLIENT_ID=YOUR_CLIENT_ID
Expand Down

0 comments on commit f30e3cb

Please sign in to comment.