All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Docs releasing fixed by fetching the branch (#639)
- Docs releasing fixed by adding the action user (#638)
- Releasing docs my mike (#637)
- Docs are now using versioning (#636)
- Docs are made smooth (#635)
- Refresh Token feature (#603)
- Added Documentation for Refresh Token (#629)
- Unit test for actions/reducers.ts (#587)
- Unit test for TokenObject.ts (#592)
- Unit test for PrivateRoute.tsx (#606)
- Unit test for utils/hooks.ts (#618)
- Unit test for AuthProvider.tsx(#617)
- Updated the internal state for better performance, and reliability
- On page refresh, the cookies are removed automatically (#473)(676f68b)
- Auth Type cookie and Localstorage are failed to get removed (cbfdc4e)
- Minimum React Version from
16.0
to16.8.0
, so that the hooks gets properly supported (bad136e) - Sign In Hook and HOC is now better to accommodate the dynamic refresh token to give better error and type support (17b2eb8)
- Updated the
SignInActionPayload
in action and sign in reducer to accommodate the dynamic refresh token feature (41be555) (57c819f)
useDebugValue
fromuseAuthenticated
anduseAuthHeader
(3d2966d)
useDebugValue
added inuseAuthenticated
anduseAuthHeader
ESM
andCJS
builds are not going through theterser
anymore
- Auth state now uses
useReducer
instead ofuseState
- PrivateRouteProps is updated to give more type checking
- Updated dependencies
- Deployment of docs
- Sourcemaps added for each files
- Type declaration files are missing, so added them
- Migrated to @rollup/plugin-typescript
- Terser added for Minified codebase
authdata.md
wrong doc of useAuthUser (70e8d8839bb50e0f524815c16827efe9dd8da615)- Property 'user' does not exist on type 'object' (#343)
AuthProvider
props. AuthProvider is now only using 4 props.- Docs
/usage
is now/integration
- Docs updated Intro and installation page
- Better documentations added.
- Docs updated
- Potential risk of duplicate tokens
authToken
andauthTokenType
key value pair swapped atgetCurrentAuthState()
inRefreshToken
(#197) (8fc03f5)
- Store Refresh Token for refreshing JWT
- Added Refresh Token feature
- Support for React 17
- AuthProvider children type changed to
React.ReactNode
- Types added in npm release for better code completion.
- Code base documentation. (Hardik0307)
- Guideline for Contribution added on project website (dotslash21)
- Eslint Linting issue
- Contributing.md typo fix. (dotslash21)
- DOCS SEO
TS Function declararation
useAuth
function added. Now use all hooks in 1 function.
- Docs: Deprecated AuthProvider params names
AuthProvider
pushing error for cookieSecure set as falseuseSignIn
function parameterwithSignIn
function param
useIsAuthenticated
andwithIsAuthenticated
added. Now check if your user is logged in or not.
- ⚠
useAuth
is changed touseAuthUser
- ⚠
withAuth
is changed towithAuthUser
- Linting the Codes
- Docs Override dir to
docs
dir
- Docs Meta Tags Fixed
- Docs Site Map Fixed
- SEO added in docs
- Type Definition
- Size decreased from 2.12 KB to 1.81 KB
- AuthContext is merged with AuthProvider
- Documentation https://authkit.arkadip.co
- Default props for
AuthProvider
- Local Storage Added (Cookie and LocalStorage can be chosen by AuthProvider Prop
authStorageType
) - Documentation https://authkit.arkadip.co
- PrivateRoute now supports render and component props
- Auth Token Type added on Sign In. Default
Bearer
Sign In
function Arguments is now an object
- UMD module
- Testing Added
- JS Map files
- Code Base Added
- Bundling with Rollup
- Package Established