two-brothers / overcooked-cms

0 stars 0 forks source link

Create separate OAuth key for development #19

Closed nikeshnazareth closed 5 years ago

nikeshnazareth commented 5 years ago

When using OAuth for authentication, the authentication provider will redirect the user to a preconfigured callback URL. Github only allows one possible URL, and it can't be a relative url (Google, for instance, allows multiple URLs).

This means that we need to change the provider to localhost:3000/auth/callback during development and overcooked.2brothers.tech/auth/callback for production.

We should create a separate OAuth token for development instead. This will require a different secret on the backend, but since the secret is not saved to the repository, none of the code needs to change.

nikeshnazareth commented 5 years ago

Note that we now prepend /v1 to each route