Sign Up With GitHub
Sign In with Github enables users to sign in to Apps using their Github accounts.
To complete this tutorial, you will need:
- An app created at Back4App
- Set up a Subdomain for your Back4app app
First of all, it’s necessary to make sure that you have an existing app created at Back4App. However, if you are a new user, you can check this tutorial to learn how to create one.
Create a new Github Application by going to Applications/New Fill up the Application name, your Homepage URL, a quick Description and your Authorization callback URL`
Then click Register Application. You should then see your App Secret and Client Secret
Visit the following URL, changing the values for CLIENT_ID for the one you created.
Log in with your GitHub account:
and the redirected website will have your code in the URL:
Copy the Code part of the URL only and run the following CURL command replacing the values YOUR_CODE, YOUR_CLIENT_ID, and YOUR_CLIENT_SECRET for the values of your application
Run it and you should retrieve your access token:
REMEMBER: the code can be used only once. If you get an error or don’t use your token, you must re-generate your Code to be able to run it again.
Now that the Sign In with Github is configured, you can start the development process. The format for AUTHDATA is:
Here is the method for the iOS SDK:
And here for the Android SDK: