From b70c906106742b13298f1414acb2591425dd702a Mon Sep 17 00:00:00 2001 From: Semen Loktionov Date: Mon, 20 Mar 2023 11:02:11 +0200 Subject: [PATCH] 0.1.7 --- CHANGELOG.md | 7 ++++++- packages/jac/README.md | 5 ++++- packages/jac/package.json | 2 +- packages/tools/package.json | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26dafe53..713ef6a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.1.7] - 2023-03-20 +### Added +- `@distributedlab/jac` - Example if user use a refresh token functionality + ## [0.1.7-rc.1] - 2023-03-17 ### Changed - `@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 [old repo]: https://github.com/distributed-lab/web-kit-old -[Unreleased]: https://github.com/distributed-lab/web-kit/compare/0.1.7-rc.1...HEAD +[Unreleased]: https://github.com/distributed-lab/web-kit/compare/0.1.7...HEAD +[0.1.7]: https://github.com/distributed-lab/web-kit/compare/0.1.7-rc.1...0.1.7 [0.1.7-rc.1]: https://github.com/distributed-lab/web-kit/compare/0.1.7-rc.0...0.1.7-rc.1 [0.1.7-rc.0]: https://github.com/distributed-lab/web-kit/compare/0.1.6...0.1.7-rc.0 [0.1.6]: https://github.com/distributed-lab/web-kit/compare/0.1.5...0.1.6 diff --git a/packages/jac/README.md b/packages/jac/README.md index 0895e993..7b8d2398 100644 --- a/packages/jac/README.md +++ b/packages/jac/README.md @@ -44,7 +44,10 @@ export function attachStaleTokenHandler(axios: AxiosInstance): void { ) // If error isn't unauthorized or request was already retried - return error - if (!isUnauthorized) return Promise.reject(error) + if (!isUnauthorized + // Add if you use a refresh token (as 'refresh_token_url' there should be refresh token endpoint) + // && error.config.url !== 'refresh_token_url' + ) return Promise.reject(error) // Some authentication store in the client app const authStore = useAuthStore() diff --git a/packages/jac/package.json b/packages/jac/package.json index 432dbcb6..1d1bd15c 100644 --- a/packages/jac/package.json +++ b/packages/jac/package.json @@ -1,6 +1,6 @@ { "name": "@distributedlab/jac", - "version": "0.1.7-rc.1", + "version": "0.1.7", "description": "A library for constructing JSON-API compliant requests and responses", "repository": { "type": "git", diff --git a/packages/tools/package.json b/packages/tools/package.json index c86cfdf2..eff4f0f9 100644 --- a/packages/tools/package.json +++ b/packages/tools/package.json @@ -1,6 +1,6 @@ { "name": "@distributedlab/tools", - "version": "0.1.7-rc.1", + "version": "0.1.7", "description": "Collection of common utility functions and classes", "repository": { "type": "git",