Skip to content

Commit 0f958f9

Browse files
authored
docs: Fix example in Discord oauth cookbook (#3260)
1 parent 46703d5 commit 0f958f9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/cookbook/authentication/_discord.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Discord login can be initialized like any other [OAuth provider](../../api/authe
1313
"discord": {
1414
"key": "<App ID>",
1515
"secret": "<App Secret>",
16-
"scopes": ["identify email"]
16+
"scope": ["identify email"]
1717
}
1818
}
1919
}
@@ -36,7 +36,7 @@ import axios, {AxiosRequestConfig} from 'axios'
3636
import {ServiceAddons} from '@feathersjs/feathers';
3737
import {AuthenticationService, JWTStrategy} from '@feathersjs/authentication';
3838
import {LocalStrategy} from '@feathersjs/authentication-local';
39-
import {expressOauth} from '@feathersjs/authentication-oauth';
39+
import {oauth} from '@feathersjs/authentication-oauth';
4040
import {Application} from './declarations';
4141

4242

@@ -48,7 +48,7 @@ export default function (app: Application) {
4848
authentication.register('discord', new DiscordStrategy());
4949

5050
app.use('/authentication', authentication);
51-
app.configure(expressOauth());
51+
app.configure(oauth());
5252
}
5353

5454
export class DiscordStrategy extends OAuthStrategy {

0 commit comments

Comments
 (0)