File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
55and 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
Original file line number Diff line number Diff 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 ()
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments