Skip to content

Commit

Permalink
Merge pull request #371 from pjonatansr/main
Browse files Browse the repository at this point in the history
  • Loading branch information
sibelius committed Apr 2, 2022
2 parents 4400798 + cab8449 commit d9bcd90
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions apps/web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,19 @@ This is the Twitter API Bearer Token. You can get a new one with the following s
- Create a new project
- Create an app inside the project
- After that you will have the API Key, the Bearer Token and the Access Token. In this case we will only need the Bearer Token. After this just add it to the .env file and you are all set.

### TWITTER_CLIENT_ID & TWITTER_CLIENT_SECRET

- Access https://developer.twitter.com/en/portal/dashboard
- Access settings from the project that you are already using to obtain the TWITTER_BEARER_TOKEN
- Go to Edit in "User authentication settings" section
- Turn on OAuth 2.0 and set the "type of app" to "Single page App"
- Add the Redirect URL (e.g.: http://localhost:3000/api/auth/callback/twitter) and all other required fields
- Access the "Key and Tokens" section
- Copy OAuth 2.0 Client ID and Client Secret
- Add to .env (TWITTER_CLIENT_ID and TWITTER_CLIENT_SECRET)

### NEXTAUTH_SECRET

- Generate a NEXTAUTH_SECRET (You could use `openssl rand -hex 32` on Linux; Or go to https://generate-secret.now.sh/32)
- Add the new generated NEXTAUTH_SECRET to .env

1 comment on commit d9bcd90

@vercel
Copy link

@vercel vercel bot commented on d9bcd90 Apr 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.