# Github Instructions

## Making Github OAuth Apps

1. Go to the [Dashboard](https://dev.cotter.app/) > Social Login > New Login Connection > Github.
2. Follow [Github's instruction on making a Github OAuth App](https://docs.github.com/en/developers/apps/creating-an-oauth-app). Enter your website/app's information as instructed.
3. At Step 8 about **Authorization callback URL**, enter the following: `https://www.cotter.app/api/v0/oauth/token/callback/GITHUB`
4. Copy your Client ID, Client Secret Key, and [Scopes](https://docs.github.com/en/developers/apps/scopes-for-oauth-apps) to your Dashboard > Social Login > Github:

![Enter your Client ID, Client Secret, and Scopes](/files/-MGMOSGx-ajL6KE9Bh8k)

### That's it!

Go back to the [Social Login instructions](/sdk-reference/web/sign-in-with-social-login-provider.md#setting-up-social-login-provider) to finish your setup.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cotter.app/sdk-reference/web/sign-in-with-social-login-provider/github-instructions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
