Skip to content

Instantly share code, notes, and snippets.

@Blankeos
Last active February 18, 2025 23:43
Show Gist options
  • Select an option

  • Save Blankeos/04a7d80eb87edc63210de9e61aee146e to your computer and use it in GitHub Desktop.

Select an option

Save Blankeos/04a7d80eb87edc63210de9e61aee146e to your computer and use it in GitHub Desktop.
OAuth For Noobs

Notes on oAuth because I keep forgetting how to do it.

Google

  1. Go to https://console.cloud.google.com/
  2. Make a new Project
  3. Go to "Credentials" https://console.cloud.google.com/apis/credentials?project=
  4. If you haven't yet, you will Configure Consent Screen first: https://console.cloud.google.com/apis/credentials/consent?project=
  5. Under OAuth 2.0 Client IDs. [+ Create Credentials] - OAuth Client ID.
  • http://localhost:3000 is the only allowed domain if you're doing local dev. Local reverse proxies to stuff like 192.168 (which if you're doing mobile webdev, might be hard).
  • Make sure Authorized redirect URIs is the '/callback' handler endpoint of your API.
  1. When still not published, make sure to go to Audience and add test users like your email: https://console.cloud.google.com/auth/audience?project=
  2. Finish everything, and you're good.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment