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.
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 andovercooked.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.