Skip to content

Commit 3c2be56

Browse files
authored
Merge pull request #44 from joshuabaker/changeset-release/main
chore: version package
2 parents 469d67d + 8413d61 commit 3c2be56

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

.changeset/network-error-logout-fix.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# authkit-react-native
22

3+
## 0.1.3
4+
5+
### Patch Changes
6+
7+
- [#43](https://github.com/joshuabaker/authkit-react-native/pull/43) [`469d67d`](https://github.com/joshuabaker/authkit-react-native/commit/469d67d3e2ece341cb033f204b48a24cba4970e2) Thanks [@joshuabaker](https://github.com/joshuabaker)! - Fix random logouts on unstable network connections. Token refresh failures now only clear the session when the server rejects the refresh token (`TokenError`, e.g. `invalid_grant`); transient failures such as network errors keep the session intact so a later call can retry, and return the stored access token when it is still fresh. Concurrent `getAccessToken()` calls now share a single in-flight refresh, preventing parallel refreshes from racing on the single-use refresh token and signing the user out. `signOut()` now always clears the local session even if the revocation request fails offline.
8+
39
## 0.1.2
410

511
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "authkit-react-native",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"description": "WorkOS AuthKit integration for React Native — OAuth 2.0 PKCE auth with token storage, session restoration, and automatic refresh",
55
"license": "MIT",
66
"packageManager": "pnpm@10.28.1",

0 commit comments

Comments
 (0)