API → Oauth2Listen for callbacks for the OAuth 2.0 provider
hidden

Parameters

Name

Type

Req.

  • provider

    string
    required
    Possible values
    • apple:  The Apple account provider.
    • discord:  The Discord account provider.
    • google:  The Google account provider.
    • github:  The GitHub account provider.
    • microsoft:  The Microsoft account provider.
    • saml:  The SAML account provider.
    • tencent:  The Tencent QQ account provider.
  • code

    string
    required
  • id_token

    string
    optional
  • state

    string
    required
  • user

    string
    optional

Returns

get
/oauth2/provider/{provider}/callback
$ curl "https://api.zoo.dev/oauth2/provider/{provider}/callback" \
	--header "Authorization: Bearer $TOKEN"