Skip to content

Commit

Permalink
Merge pull request #395 from cpave3/feature/disable-refresh-whitelist
Browse files Browse the repository at this point in the history
Disable whitelist on auth refreshToken call (#385)
  • Loading branch information
lbalmaceda committed Aug 2, 2021
2 parents c1b15ce + 3380697 commit defc6f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth/__tests__/__snapshots__/index.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ exports[`auth refresh token should send correct payload 1`] = `
Array [
"https://samples.auth0.com/oauth/token",
Object {
"body": "{\\"refresh_token\\":\\"a refresh token of a user\\",\\"scope\\":\\"openid\\",\\"client_id\\":\\"A_CLIENT_ID_OF_YOUR_ACCOUNT\\",\\"grant_type\\":\\"refresh_token\\"}",
"body": "{\\"refresh_token\\":\\"a refresh token of a user\\",\\"scope\\":\\"openid\\",\\"customParam\\":\\"a custom value which should not be filtered out\\",\\"client_id\\":\\"A_CLIENT_ID_OF_YOUR_ACCOUNT\\",\\"grant_type\\":\\"refresh_token\\"}",
"headers": Object {
"Accept": "application/json",
"Auth0-Client": "eyJuYW1lIjoicmVhY3QtbmF0aXZlLWF1dGgwIiwidmVyc2lvbiI6IjEuMC4wIn0=",
Expand Down
1 change: 1 addition & 0 deletions src/auth/__tests__/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ describe('auth', () => {
const parameters = {
refreshToken: 'a refresh token of a user',
scope: 'openid',
customParam: 'a custom value which should not be filtered out',
};
it('should send correct payload', async () => {
fetchMock.postOnce('https://samples.auth0.com/oauth/token', tokens);
Expand Down
1 change: 1 addition & 0 deletions src/auth/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ export default class Auth {
refreshToken: {required: true, toName: 'refresh_token'},
scope: {required: false},
},
whitelist: false,
},
parameters,
);
Expand Down

0 comments on commit defc6f9

Please sign in to comment.