This endpoint redirects users to GitHub’s OAuth authorization page to begin the authentication process. After successful authorization, GitHub will redirect back to the callback endpoint with an authorization code.
fetch('https://api.diffy.com/auth/github', { method: 'GET', redirect: 'follow'}).then(response => { // User will be redirected to GitHub OAuth console.log(response.url);});
Python
import requestsresponse = requests.get('https://api.diffy.com/auth/github', allow_redirects=True)print(f"Redirected to: {response.url}")