Skip to content

Commit

Permalink
docs: Fix example in Discord oauth cookbook (#3260)
Browse files Browse the repository at this point in the history
  • Loading branch information
gustojs authored Aug 16, 2023
1 parent 46703d5 commit 0f958f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/cookbook/authentication/_discord.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Discord login can be initialized like any other [OAuth provider](../../api/authe
"discord": {
"key": "<App ID>",
"secret": "<App Secret>",
"scopes": ["identify email"]
"scope": ["identify email"]
}
}
}
Expand All @@ -36,7 +36,7 @@ import axios, {AxiosRequestConfig} from 'axios'
import {ServiceAddons} from '@feathersjs/feathers';
import {AuthenticationService, JWTStrategy} from '@feathersjs/authentication';
import {LocalStrategy} from '@feathersjs/authentication-local';
import {expressOauth} from '@feathersjs/authentication-oauth';
import {oauth} from '@feathersjs/authentication-oauth';
import {Application} from './declarations';


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

app.use('/authentication', authentication);
app.configure(expressOauth());
app.configure(oauth());
}

export class DiscordStrategy extends OAuthStrategy {
Expand Down

0 comments on commit 0f958f9

Please sign in to comment.