Skip to content

Commit 0ee384b

Browse files
committed
endpoints: add links/provider for Discord
endpoints are provided from https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-urls
1 parent 314ee5b commit 0ee384b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

endpoints/endpoints.go

+5
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ var Cern = oauth2.Endpoint{
3535
TokenURL: "https://oauth.web.cern.ch/OAuth/Token",
3636
}
3737

38+
var Discord = oauth2.Endpoint{
39+
AuthURL: "https://discord.com/oauth2/authorize",
40+
TokenURL: "https://discord.com/api/oauth2/token",
41+
}
42+
3843
// Facebook is the endpoint for Facebook.
3944
var Facebook = oauth2.Endpoint{
4045
AuthURL: "https://www.facebook.com/v3.2/dialog/oauth",

0 commit comments

Comments
 (0)