Skip to main content
GET
/
v1
/
auth
/
oauth
/
github
/
begin
Github
curl --request GET \
  --url https://api.streambird.io/v1/auth/oauth/github/begin
{
  "redirect_url": "https://github.com/login/oauth/authorize?client_id=63a8d0c330e35260c229&redirect_uri=http%3A%2F%2Flocalhost%3A11019%2Fv1%2Fauth%2Foauth%2Fcallback%2Foauthcb_28XPFGcXWv4UvjYYaG74yeZcepx&response_type=code&scope=read%3Auser+user%3Aemail&state=github-jjcHMiUbxPn6hli55B4v5LciXGAPj3dWqNYWTXsQ7xzj1pHhM4rBtrnXnQVSxds1"
}

Query Parameters

public_token
string
required

Required Public token of the App, public token can be exposed in the frontend and client side SDKs.

redirect
boolean

Optional Determines if the response should be a 302 auto redirect instead of returning the redirect_url in the json with a 200 status code.

login_redirect_url
string

Optional If an existing user is found, this URL will be used for redirect upon the completion of the OAuth flow

registration_redirect_url
string

Optional If a new user is created, this URL will be used for redirect upon the completion of the OAuth flow

Response

Github response

redirect_url
string
required
Minimum length: 1