Fixes a bug where a refresh will never occur as the expires token is stored incorrectly.
oauth-client2 createSession uses a parameter for data.expires_in which is meant to handle both absolute expiry dates as well as a relative expire duration for tokens.
Currently passing a date into expires_in results in an "Invalid Date" and therefore a token without an expiry is persisted.
Why?
Fixes a bug where a refresh will never occur as the expires token is stored incorrectly.
oauth-client2
createSession
uses a parameter fordata.expires_in
which is meant to handle both absolute expiry dates as well as a relative expire duration for tokens. Currently passing a date intoexpires_in
results in an "Invalid Date" and therefore a token without an expiry is persisted.Issue is still detailed here but currently not fixed https://github.com/mulesoft-labs/js-client-oauth2/issues/106
How to test:
client-oauth2
data.expires_in
Expected Result: token correctly created with date