UNPKG

@mornya/auth-libs

Version:

The project of JWT / JSON Authentication process library

140 lines (117 loc) 4.05 kB
# Change Log All notable version changes would be documented in this file. ## 3.0.2 ~ 3.0.3 > Patch version updated at 2025.08.21 ~ 22 - Chores: Update dependencies - Performance Improvements - Adjust time console log before token expiration - Show error if `InvalidTokenError` has occurred ## 3.0.1 > Patch version updated at 2025.07.09 - Chores - Update dependencies - Updated typings - Performance Improvements: Added ESM build options ## 3.0.0 > Major version updated at 2024.01.09 - Chores - Update dependencies - Update document - Update testcases - Performance Improvements - Improved typing to be applied to variables used between `on*` callback methods - Change the parameter provision format of `on*` callback methods - Bug Fixes - The result was `EMPTY` even though the expiration date had passed - Test cases that did not execute properly ## 2.5.3 > Patch version updated at 2024.01.04 - Chores - Update dependencies - Update document ## 2.5.2 > Patch version updated at 2023.11.15 - Chores - Update dependencies - Add testcases ## 2.5.0 ~ 2.5.1 > Minor version updated at 2022.08.08 ~ 09 - Chores - Update dependencies - TypeScript `namespace` was stripped for the module - Performance Improvements: `onDroppedToken` and `onExpiredToken` methods has a parameter prepended - Bug Fixes: The initial value `isInitialTime` was wrong ## 2.4.1 > Patch version updated at 2022.03.20 - Chores - Update dependencies - Apply content as the vessel is updated ## 2.4.0 > Minor version updated at 2020.09.09 - Chores: Update dependencies - Performance Improvements: Reflects the fixes for the upgraded `EventableStorage` dependency ## 2.3.0 > Minor version updated at 2020.08.12 - Chores: Update dependencies - Performance Improvements: Renamed type alias names ## 2.2.0 > Minor version updated at 2020.04.08 - Chores: Update dependencies - Performance Improvements: Removed `currentToken` parameter at `onExpiredToken` and `onDroppedToken` methods ## 2.1.0 > Minor version updated at 2020.03.22 - Performance Improvements - When token has been received, add `expiredIn` item to the result object - When calling the `onReceiveMessage` callback method, if the token has not been stored in the local storage, add the token to store it ## 2.0.x > Patch version updated at 2020.02.29 - Bug Fixes: Packing bundled dependencies into library -> reverted ## 2.0.0 > Major version released at 2020.02.28 - Chores - Add testcases - Source code cleanup with applying vessel@3.3.0 - Update dependencies - New Features - Handling authentication in JSON / Serialized type in addition to JWT / JWE type - Automatically invokes event when token is expired - Added `onExpiredToken` callback method to execute upon token expiration depending on the` isInvokeExpiredEvent` option setting - Added `saveToken` method to specify expiry date and time when saving token obtained through API - Added `setState` and `getState` methods to refer to variable value in callback function ## 1.4.2 > Patch version updated at 2020.01.10 - Chores - Modify `engines.node` configuration - Update dependencies ## 1.4.1 > Patch version updated at 2019.11.14 - Chores: Rebuild and publish to uglified code ## 1.4.0 > Minor version updated at 2019.11.12 - Chores - Add testcases - Source codes cleanup - Update dependencies ## 1.3.1 > Patch version updated at 2019.07.26 - Chores - Add type for each methods - Update dependencies ## 1.3.0 > Minor version updated at 2019.05.10 - Chores - Remove duplicated value from parsed result - Update dependencies ## 1.2.0 > Minor version updated at 2019.04.30 - New Features: Add data information from server for onAcquiredToken method ## 1.1.1 > Patch version updated at 2019.04.30 - Bug Fixes: Fixed localStorage.setItem event overrun ## 1.1.0 > Minor version updated at 2019.04.29 - New Features: Countering the JWE Token ## 1.0.0 > Major version released at 2019.04.28 - New Features - Add initialization code using @mornya/eventable-storage-libs