Skip to content

Commit

Permalink
0.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
napalmpapalam committed Mar 20, 2023
1 parent d39fb1f commit b70c906
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion packages/jac/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion packages/jac/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/tools/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit b70c906

Please sign in to comment.