Skip to content

Commit c648b1e

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 c648b1e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

endpoints/endpoints.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ var Cern = oauth2.Endpoint{
3535
TokenURL: "https://oauth.web.cern.ch/OAuth/Token",
3636
}
3737

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

0 commit comments

Comments
 (0)