File tree Expand file tree Collapse file tree
docs/cookbook/authentication Expand file tree Collapse file tree Original file line number Diff line number Diff 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'
3636import {ServiceAddons } from ' @feathersjs/feathers' ;
3737import {AuthenticationService , JWTStrategy } from ' @feathersjs/authentication' ;
3838import {LocalStrategy } from ' @feathersjs/authentication-local' ;
39- import {expressOauth } from ' @feathersjs/authentication-oauth' ;
39+ import {oauth } from ' @feathersjs/authentication-oauth' ;
4040import {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
5454export class DiscordStrategy extends OAuthStrategy {
You can’t perform that action at this time.
0 commit comments