knocklabs / javascript

Official JavaScript packages for interacting with Knock
https://knock.app/
MIT License
11 stars 2 forks source link

feat: add token expiration handler #49

Closed connorlindsey closed 5 months ago

connorlindsey commented 5 months ago

Description

This adds the option to pass a callback to the Knock client when authenticating a user that will be called when a token expires, making it easier to refresh the user's token.

linear[bot] commented 5 months ago

KNO-5207 [SDK] Implement a token expiration handler

changeset-bot[bot] commented 5 months ago

🦋 Changeset detected

Latest commit: db4908e79f8767f199a7b3006ccb93c23428fbb1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages | Name | Type | | ------------------------------- | ----- | | nextjs-example | Patch | | @knocklabs/react | Patch | | @knocklabs/react-core | Patch | | @knocklabs/client | Patch | | @knocklabs/react-native | Patch | | client-example | Patch | | @knocklabs/react-native-example | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR