Closed BramRoets closed 1 year ago
Hi @BramRoets - thanks for raising this
You need to pass grantOptions.initOverrides like so:
await auth0.oauth.passwordGrant({
username: 'myusername@example.com',
password: 'mypassword'
},
{ initOverrides: { headers: { 'auth0-forwarded-for': 'END.USER.IP.123' } } }
);
Will fix the docs
Hi @BramRoets - thanks for raising this
You need to pass grantOptions.initOverrides like so:
await auth0.oauth.passwordGrant({ username: 'myusername@example.com', password: 'mypassword' }, { initOverrides: { headers: { 'auth0-forwarded-for': 'END.USER.IP.123' } } } );
Will fix the docs
Awesome. thanks!
Checklist
Description
The generated docs for
passwordGrant
are incorrect. Additionally, it's not possible to passauth0-forwarded-for
clientCredentialsGrant
instead ofpasswordGrant
headers
propertyReproduction
headers
is not accepted.Additional context
No response
node-auth0 version
4.0.0-beta.6
Node.js version
v18.16.1