I want github oauth to be the only way a user can login to my app
I have a pre-selected list of github account names that each login attempt will be validated against.
I set up an “authorization callback URL” in the github oauth application settings for my app.
My problem is that when I run my app in local development mode, I cannot login with github because the “authorization callback URL” is configured for my production environment.
If I change it through my github setting page and set the “authorization callback URL” to
localhost:3000, then it works in development mode but stops working in production.
I want to be able to login seamlessly using github oauth from either my dev environment or my prod environment - how can I arrange this?