Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Releases: mulesoft-labs/js-client-oauth2

Convert expiration to number

19 Oct 18:11
Compare
Choose a tag to compare

Fixed

  • Convert the expiration to a number before updating the expiration time

Handle OAuth response errors before status error

11 Oct 20:26
Compare
Choose a tag to compare

Changed

  • Handle OAuth 2.0 errors, set the error bodies, before checking the status code (58dd277)

Parse error response body

11 Oct 19:24
Compare
Choose a tag to compare

Changed

  • Parse the err.body property into an object (519609a)

Use Popsicle

11 Oct 19:23
Compare
Choose a tag to compare

Changed

  • Use popsicle for requests under node.js (eca0ae3)

Refactor Request Flow

21 Sep 20:36
Compare
Choose a tag to compare

Changed

  • Using a smaller build for handling the request flow
  • When refreshing a token, merge the new data with the old data and create a new token instance

Removed

  • Killed the ability to do requests directly from the user object

Allow Paths for `getToken`

23 Mar 23:42
Compare
Choose a tag to compare

Changed

  • Allow paths for getToken(uri)

Merged Method Options

14 Mar 23:45
Compare
Choose a tag to compare

Changed

  • Provide and merge options on all methods

Non-UMD Build

23 Feb 02:56
Compare
Choose a tag to compare

Changed

  • Removed UMD-compatible build in favour of CommonJS
  • Removed custom URL parsing logic in favour of Node.js/Browserified/etc modules
  • Replace custom inlined functions with NPM packages
  • Updated Popsicle to 3.x

Major Release with Popsicle 1.0

27 Jul 05:57
Compare
Choose a tag to compare

Changed

  • Using popsicle@1.0.0 which breaks backward compatibility
  • Custom options (rejectUnauthorized, agent) can be passed through using options

Variadic Create Token

20 Jul 09:28
Compare
Choose a tag to compare

Changed

  • Create token method can now accept variadic arguments
  • oauth2.owner.getToken now accepts an options override