8000 docs: Fix example in Discord oauth cookbook by gustojs · Pull Request #3260 · feathersjs/feathers · GitHub
[go: up one dir, main page]

Skip to content

docs: Fix example in Discord oauth cookbook#3260

Merged
daffl merged 2 commits intofeathersjs:dovefrom
gustojs:gustojs-patch-1
Aug 16, 2023
Merged

docs: Fix example in Discord oauth cookbook#3260
daffl merged 2 commits intofeathersjs:dovefrom
gustojs:gustojs-patch-1

Conversation

@gustojs
Copy link
Contributor
@gustojs gustojs commented Aug 9, 2023

Both Discord and @feathers/authentication-oauth expect "scope" key in config file instead of "scopes".

Both Discord and `@feathers/authentication-oauth` expect "scope" and not "scopes".
@gustojs
Copy link
Contributor Author
gustojs commented Aug 9, 2023

There's a mistake in my commit title but not in the commit itself.
I confirm it has to be "scope", singular. It's plural now.

`@feathersjs/authentication-oauth` doesn't export `expressOauth`, it only exports `oauth`.
@gustojs
Copy link
Contributor Author
gustojs commented Aug 10, 2023

I've added another fix in second commit - we need to import oauth, not expressOauth from @feathersjs/authentication-oauth.

@gustojs gustojs changed the title Fix wrong config key in Discord oauth cookbook example Fixes to code example in Discord oauth cookbook Aug 10, 2023
@daffl daffl changed the title Fixes to code example in Discord oauth cookbook docs: Fix example in Discord oauth cookbook Aug 16, 2023
@daffl daffl merged commit 0f958f9 into feathersjs:dove Aug 16, 2023
@daffl
Copy link
Member
daffl commented Aug 16, 2023

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0