Notes on oAuth because I keep forgetting how to do it.
- Go to https://console.cloud.google.com/
- Make a new Project
- Go to "Credentials" https://console.cloud.google.com/apis/credentials?project=
- If you haven't yet, you will Configure Consent Screen first: https://console.cloud.google.com/apis/credentials/consent?project=
- 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.
- 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=
- Finish everything, and you're good.