# OAuth2 Support

Before proceeding, it would be good to check the tutorial below

{% embed url="<https://docs.novel.dev/guides/knowledge-base/novel-server/integrating-an-oauth-provider>" %}

Integrating social OAuth2 providers is streamlined with **fastify-grant** and **grant**, enabling users to log in via platforms like Google, Facebook, or GitHub.&#x20;

With minimal effort, developers can offer secure and user-friendly login options, enhancing accessibility and reducing friction during authentication.

## Supported Providers

### Github

Implementation: <https://github.com/madewithnovel/novel/blob/main/app/auth/github.ts>

You will need to provide the Github Oauth2 App Credentials in your `.env` file.

<table><thead><tr><th width="272"></th><th>Description</th></tr></thead><tbody><tr><td>GITHUB_CLIENT_ID</td><td>The client ID for the github app</td></tr><tr><td>GITHUB_SECRET_KEY</td><td>The secret key for the github app</td></tr></tbody></table>

You can get them here: <https://github.com/settings/applications/new>

Need more? Check out the roadmap or request it in our Community.

## Changelog

* 2024-12-20 - Initial Documentation


---

# 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.novel.dev/novel-server/authentication/oauth2-support.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.
