Releases: AckeeCZ/bear-auth
Releases · AckeeCZ/bear-auth
Bear Auth v2.1.0
♻️ Make types more accurate
♻️ State management & extend session states
- use mutable state (remove immer package)
- remove setInstance (all changes have been already applied)
- remove loading session state
- add retrieving, refreshing, and signing-out session state
Bear Auth v2.0.0
Breaking changes
-
💥 Access expiration timestamp instead of expiresIn value
The
expiresIn
properties have been changed toexpiration
timestamp in ISO format.Before:
await authenticate<AuthInfo>(bearAuthId, { // ... expiresIn: 3000, });
After:
await authenticate<AuthInfo>(bearAuthId, { // ... expiration: new Date(Date.now() + 3000).toISOString(), });
The same applies for the return values of the
setRefreshTokenHook
handler.
New features
- ✨ Add hook retry mechanism
- ✨ Support React v19
- 🔊 Add debug logs to getAccessToken
- ⬆️ Minor & patch dependencies upgrade
Bug fixes
- 🐛 Throw an error when using setLogLevel method with custom logger
- 🐛 Clear storage on zod schema change
- ♻️ Fix storage type
Internal
- 🐛 Fix prettier (on save)
- ➕ Add husky
- ♻️ Update the core example