Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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