Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c648b1e

Browse files
committedFeb 13, 2025··
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
 

Diff for: ‎endpoints/endpoints.go

+6
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)
Please sign in to comment.