Skip to content

Commit 05e1d15

Browse files
fratzingerdaffl
authored andcommitted
fix(authentication-oauth): defaults first for GrantConfig
1 parent ff662a4 commit 05e1d15

File tree

1 file changed

+2
-2
lines changed
  • packages/authentication-oauth/src

1 file changed

+2
-2
lines changed

packages/authentication-oauth/src/utils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ export const getGrantConfig = (service: AuthenticationService): GrantConfig => {
4242
const grant: GrantConfig = {
4343
...oauthConfig,
4444
defaults: {
45-
...oauthConfig.defaults,
4645
prefix: '/oauth',
4746
origin: `${protocol}://${host}`,
4847
transport: 'state',
49-
response: ['tokens', 'raw', 'profile']
48+
response: ['tokens', 'raw', 'profile'],
49+
...oauthConfig.defaults
5050
}
5151
}
5252

0 commit comments

Comments
 (0)