We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d43734 commit b345857Copy full SHA for b345857
1 file changed
packages/authentication-oauth/src/index.ts
@@ -1,4 +1,4 @@
1
-import merge from 'lodash/merge';
+import defaultsDeep from 'lodash/defaultsDeep';
2
import each from 'lodash/each';
3
import omit from 'lodash/omit';
4
import { createDebug } from '@feathersjs/commons';
@@ -41,14 +41,14 @@ export const setup = (options: OauthSetupSettings) => (app: Application) => {
41
}
42
43
44
- const grant = merge({
+ const grant = defaultsDeep({}, omit(oauth, 'redirect'), {
45
defaults: {
46
prefix,
47
origin: `${protocol}://${host}`,
48
transport: 'session',
49
response: ['tokens', 'raw', 'profile']
50
51
- }, omit(oauth, 'redirect'));
+ });
52
53
const getUrl = (url: string) => {
54
const { defaults } = grant;
0 commit comments