Skip to content

Commit e774d6b

Browse files
authored
add discord config (#61)
1 parent a4ff576 commit e774d6b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ You can choose some default setup to assign to `auth` option.
5959
- `MICROSOFT_CONFIGURATION`
6060
- `VKONTAKTE_CONFIGURATION`
6161
- `SPOTIFY_CONFIGURATION`
62+
- `DISCORD_CONFIGURATION`
6263

6364
### Custom configuration
6465

index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,4 +192,11 @@ oauthPlugin.SPOTIFY_CONFIGURATION = {
192192
tokenPath: '/api/token'
193193
}
194194

195+
oauthPlugin.DISCORD_CONFIGURATION = {
196+
authorizeHost: 'https://discord.com',
197+
authorizePath: '/api/oauth2/authorize',
198+
tokenHost: 'https://discord.com',
199+
tokenPath: '/api/oauth2/token'
200+
}
201+
195202
module.exports = oauthPlugin

0 commit comments

Comments
 (0)