Add GitHub Authorization to an OAuth Client App
lessonDuration 3m 29s
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.