Comments (6)
Hi,
"@fusionauth/node-client": "1.16.0"
=> "@fusionauth/typescript-client": "1.17.0"
@mooreds edited, copy/pasted twice the same lib 🔝
from fusionauth-typescript-client.
Hiya!
Thanks for letting us know.
What version of the node client were you running previously? What version of the typescript client are you moving to?
from fusionauth-typescript-client.
Hi,
I think it could come from the fact that in the node-client lib the body is explicitly serialized with JSON.stringify
queryString.stringify
, which will effectively remove any undefined prop, like for instance scope
if not provided to exchangeRefreshTokenForAccessToken
setFormBody: function(body) {
this.body = queryString.stringify(body);
this.header('Content-Type', 'application/x-www-form-urlencoded');
this.header('Content-Length', Buffer.byteLength(this.body));
return this;
},
Whereas in typescript-client
(this repo) the missing JSON serialization means we're going to keep that scope key explicitly set to undefined
.
Edit: JSON.stringify => queryString.stringify. Issue is still the same, queryString also removed any undefined props
from fusionauth-typescript-client.
That sure looks like a incompatibility to me. I'll take a look. We also welcome pull requests if you want to just patch DefaultRESTClient.ts
.
from fusionauth-typescript-client.
We also welcome pull requests if you want to just patch DefaultRESTClient.ts
Ugh, that seems too risky to me because I don't know the reason why the dropped the queryString.stringify
in the first place. I can't just assume that's an oversight, right? I might very well be breaking something for someone else by adding queryString.stringify
I could submit a PR and let you guys deal with that risk assessment?
from fusionauth-typescript-client.
No worries, I ended up submitting a PR (#32), so no effort needed on your part. Thanks again for reporting this.
from fusionauth-typescript-client.
Related Issues (20)
- Provide method to generate the /oauth2/logout method HOT 1
- The retrieveUserInfoFromAccessToken doesn't return a UserResponse HOT 7
- Expose typedoc docs HOT 4
- 'loginConfiguration' and 'lambdaConfiguration' not working when createApplication
- Missing JWTManager HOT 1
- User Search by Ids Fails with multiple Ids HOT 9
- Issues with building app with fusionauth-typescript-client HOT 6
- What is the default timeout for the operation ? HOT 1
- UpdateUser Changes the Password Unexpectedly HOT 2
- patchRegistration not working as intended HOT 3
- SDK method to return current access token or refresh it if expired HOT 4
- ClientResponse `exception` key should be defined as `Errors` type instead of `Error`
- retrieveUserByX does not allow specification of a tenant id HOT 5
- Client and API Documentation don't align - searchEntityTypes HOT 2
- client.logout("refreshtokien here") dont work HOT 2
- Issue with domain sync HOT 5
- EventType includes unused types HOT 4
- Missing /oauth2/device_authorize endpoint
- Missing "Complete the Device Authorization Grant Request" method call HOT 1
- searchUsersByIds Badly formats the query, resulting in an error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fusionauth-typescript-client.