Skip to content

Commit b70c906

Browse files
committed
0.1.7
1 parent d39fb1f commit b70c906

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.1.7] - 2023-03-20
8+
### Added
9+
- `@distributedlab/jac` - Example if user use a refresh token functionality
10+
711
## [0.1.7-rc.1] - 2023-03-17
812
### Changed
913
- `@distributedlab/jac` - migrate from `jsona` dependency to the `@distributedlab/jsona`
@@ -83,7 +87,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8387

8488
[old repo]: https://github.com/distributed-lab/web-kit-old
8589

86-
[Unreleased]: https://github.com/distributed-lab/web-kit/compare/0.1.7-rc.1...HEAD
90+
[Unreleased]: https://github.com/distributed-lab/web-kit/compare/0.1.7...HEAD
91+
[0.1.7]: https://github.com/distributed-lab/web-kit/compare/0.1.7-rc.1...0.1.7
8792
[0.1.7-rc.1]: https://github.com/distributed-lab/web-kit/compare/0.1.7-rc.0...0.1.7-rc.1
8893
[0.1.7-rc.0]: https://github.com/distributed-lab/web-kit/compare/0.1.6...0.1.7-rc.0
8994
[0.1.6]: https://github.com/distributed-lab/web-kit/compare/0.1.5...0.1.6

packages/jac/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ export function attachStaleTokenHandler(axios: AxiosInstance): void {
4444
)
4545

4646
// If error isn't unauthorized or request was already retried - return error
47-
if (!isUnauthorized) return Promise.reject(error)
47+
if (!isUnauthorized
48+
// Add if you use a refresh token (as 'refresh_token_url' there should be refresh token endpoint)
49+
// && error.config.url !== 'refresh_token_url'
50+
) return Promise.reject(error)
4851

4952
// Some authentication store in the client app
5053
const authStore = useAuthStore()

packages/jac/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@distributedlab/jac",
3-
"version": "0.1.7-rc.1",
3+
"version": "0.1.7",
44
"description": "A library for constructing JSON-API compliant requests and responses",
55
"repository": {
66
"type": "git",

packages/tools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@distributedlab/tools",
3-
"version": "0.1.7-rc.1",
3+
"version": "0.1.7",
44
"description": "Collection of common utility functions and classes",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)