-
Notifications
You must be signed in to change notification settings - Fork 28
Closed
Description
So I don't know if the current behavior is good or not, but I know it differs from the node-client and breaks compatibility.
I use to call the following without error with the node-client
await fusionAuthClient.exchangeRefreshTokenForAccessToken(
refreshToken, clientID, clientSecret
)Now the same code gives me the following error:
ClientResponse {
statusCode: 400,
exception: {
error: 'invalid_scope',
error_description: 'The scope provided is different than the scope used to generate the refresh token.'
}
}To fix it, I need to modify my code and add the scope parameter:
await fusionAuthClient.exchangeRefreshTokenForAccessToken(
refreshToken, clientID, clientSecret, 'offline_access'
)I'm raising that as an issue because the readme in node-client implies that there will be compatibility:
https://github.com/FusionAuth/fusionauth-node-client#deprecation-warning
You can just change your dependency and should have no problems using it with node as the package is still javascript but with additional type information. If you run into problems then let us know over there.
Metadata
Metadata
Assignees
Labels
No labels