@@ -18,6 +18,7 @@ import (
1818 "github.com/markbates/goth/providers/dailymotion"
1919 "github.com/markbates/goth/providers/deezer"
2020 "github.com/markbates/goth/providers/digitalocean"
21+ "github.com/markbates/goth/providers/discord"
2122 "github.com/markbates/goth/providers/dropbox"
2223 "github.com/markbates/goth/providers/facebook"
2324 "github.com/markbates/goth/providers/fitbit"
@@ -90,6 +91,7 @@ func main() {
9091 gitlab .New (os .Getenv ("GITLAB_KEY" ), os .Getenv ("GITLAB_SECRET" ), "http://localhost:3000/auth/gitlab/callback" ),
9192 dailymotion .New (os .Getenv ("DAILYMOTION_KEY" ), os .Getenv ("DAILYMOTION_SECRET" ), "http://localhost:3000/auth/dailymotion/callback" , "email" ),
9293 deezer .New (os .Getenv ("DEEZER_KEY" ), os .Getenv ("DEEZER_SECRET" ), "http://localhost:3000/auth/deezer/callback" , "email" ),
94+ discord .New (os .Getenv ("DISCORD_KEY" ), os .Getenv ("DISCORD_SECRET" ), "http://localhost:3000/auth/discord/callback" , discord .ScopeIdentify , discord .ScopeEmail ),
9395 )
9496
9597 m := make (map [string ]string )
@@ -99,6 +101,7 @@ func main() {
99101 m ["dailymotion" ] = "Dailymotion"
100102 m ["deezer" ] = "Deezer"
101103 m ["digitalocean" ] = "Digital Ocean"
104+ m ["discord" ] = "Discord"
102105 m ["dropbox" ] = "Dropbox"
103106 m ["facebook" ] = "Facebook"
104107 m ["fitbit" ] = "Fitbit"
0 commit comments