Discord OAuth 2.0
This is a provider for the package golang.org/x/oauth2 implementing authentication endpoints for Discord
Install
$ go get github.com/ravener/discord-oauth2
Usage
package main
import (
"github.com/ravener/discord-oauth2"
"golang.org/x/oauth2"
)
func main() {
conf := &oauth2.Config{
Endpoint: discord.Endpoint,
Scopes: []string{discord.ScopeIdentify},
RedirectURL: "http://localhost:3000/auth/callback",
ClientID: "id",
ClientSecret: "secret",
}
}
A full authentication flow example server can be found in example directory
You can join #oauth2
in my Discord Server for support and updates.
License
MIT