To be able to log in during development, you'll need a Client ID and Client Secret. To get these, register a new OAuth application on GitHub.
Here, you will need to fill in an Application name, Homepage URL and Authorization callback URL.
Make sure the Authorization callback URL is set to freetime://
. The others can be filled in as you wish.
You'll be redirected to the application page where you can access your Client ID and Client Secret.
To add the Client ID and Client Secret to the App, follow these steps:
- In Xcode, go to
Product
(in the Menu bar) >Scheme
>Manage Schemes...
- Select
Freetime
and clickEdit...
- Go to
Run
>Arguments
- Add your Client ID (
GITHUB_CLIENT_ID
as key) and Client Secret (GITHUB_CLIENT_SECRET
) to the Environment Variables.