Skip to content

Commit

Permalink
twitch: add twitch OAuth2 endpoint
Browse files Browse the repository at this point in the history
Twitch Auth API documentation: https://dev.twitch.tv/docs/authentication

Change-Id: I1a517609c229c8893d2dbf91f8821db386f822ab
Reviewed-on: https://go-review.googlesource.com/83136
Reviewed-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
while-loop authored and bradfitz committed Dec 11, 2017
1 parent 6a2004c commit 3ea2187
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions twitch/twitch.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// Package twitch provides constants for using OAuth2 to access Twitch.
package twitch // import "golang.org/x/oauth2/twitch"

import (
"golang.org/x/oauth2"
)

// Endpoint is Twitch's OAuth 2.0 endpoint.
//
// For more information see:
// https://dev.twitch.tv/docs/authentication
var Endpoint = oauth2.Endpoint{
AuthURL: "https://api.twitch.tv/kraken/oauth2/authorize",
TokenURL: "https://api.twitch.tv/kraken/oauth2/token",
}

0 comments on commit 3ea2187

Please sign in to comment.