Add GitHub Authorization to an OAuth Client App

Share this video with your friends

Send Tweet

We're adding Github authorization to our client app

Create a function that is called on window load. In that function store the parameters that get sent over to the Github auth server.

In our query params, we will set the response_type parameter to "code" in order to ask the auth server for a code. Asking for a code from the auth server is more secure than asking for the access token through a browser

Finally, create a URL from the params and an authorization endpoint. Using a query selector select an anchor tag and set the href attribute to the URL that you created.

Md. Anam Hossain
~ 3 years ago

How can I run 2 server at the same time from root folder ?