Links

GitHub

The GitHub auth provides a convenient way for users to authenticate and log in to your application using their GitHub accounts.
GitHub auth demo

Prerequisites

Before getting started with this section, ensure you have:
  1. 1.
    Completed all steps in the Firebase Setup section for your project.
  2. 2.
    Completed Initial setup required for authentication. (Please note: Skip if you have already enabled authentication and created 'users' collection while creating your project with Firebase Setup.)

Adding GitHub auth

Adding GitHub auth comprises of following steps:

1. Enabling GitHub authentication in Firebase

To enable GitHub authentication in the Firebase:
  1. 1.
    Open the Firebase console, Click on Authentication (
    in the left side menu).
  2. 2.
    Select the Sign-in method tab, and select GitHub. If you have already added another provider, click on the Add new provider, select GitHub, and Enable it.
  3. 3.
    To get the Client ID and Client Secret, register your app as a developer application on GitHub, and while doing so, paste the authorization callback URL to your GitHub app configuration.
  4. 4.
    Click Save.
Enabling GitHub authentication in Firebase
  1. 5.
    To test the app in Run Mode, add our domain to Authorized domains.
    Adding authorized domain

2. Adding GitHub login action

Follow the steps below to add GitHub login action:
  1. 1.
    Select the widget (e.g., Button) on which you want to add the action.
  2. 2.
    Select Actions from the properties panel (the right menu), If it's the first action, click + Add Action button. Otherwise, click the "+" button below the previous action tile (inside Action Flow Editor) and select Add Action.
  3. 3.
    Search and select the Login (under Backend/Database > Firebase Authentication) action.
  4. 4.
    Set Auth Provider to GitHub.
Adding GitHub login action