Discord auth

This commit is contained in:
Eliot Partridge
2019-08-30 10:34:14 -05:00
parent ef316acfe4
commit 326063bc95
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -239,7 +239,7 @@ export function authRoutes(
providers.filter(p => !!p.auth).forEach(({ id, strategy, auth, connectOnly, additionalOptions = {} }) => {
const callbackURL = `${host}auth/${id}/callback`;
const scope = id === 'patreon' ? ['users'] : ['email'];
const scope = id === 'patreon' ? ['users'] : id === 'discord' ? ['identify', 'email'] : ['email'];
const options = {
...additionalOptions,
...auth,