# 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
