Skip to content

Releases: workos/authkit-js

v0.4.0

30 Aug 17:25
3a5929a
Compare
Choose a tag to compare

Changes

  • Only proactively refreshes active tabs (inactive tabs will still be refreshed as necessary when getAccessToken is called).
  • Doesn't call onRefreshFailure on the initial refresh request

Fixes

  • authkit-js would previously return stale tokens after a browser lock error

Removes

  • refreshSession (getAccessToken will refresh when necessary)

v0.3.0

28 Aug 19:09
Compare
Choose a tag to compare
  • Added onRefreshError callback
  • Changed: getAccessToken throws a LoginRequiredError if an access token cannot be returned.

v0.2.2

14 Aug 21:16
Compare
Choose a tag to compare

Fixes

  • refresh timing (#15)

v0.2.1

12 Aug 20:51
Compare
Choose a tag to compare

Fixes:

  • Schedules token-refreshing after exchanging authorization code
  • Calls onRefresh() after successful code exchange response

v0.2.0

08 Aug 17:48
Compare
Choose a tag to compare
  • Added passwordResetToken option for signIn()

v0.1.0

07 Aug 21:53
Compare
Choose a tag to compare

Added

  • getClaims function to decode access tokens.
  • onRefresh callback that is fired when new authentication responses are received.