Releases: leafsphp/auth
Releases · leafsphp/auth
🥀 Firethorn '3'
v3.0.3 - 12 Nov 2024
Fixed
- Patched up JWT expiry error
- Patched up failures from non-numeric session lifetimes
🥀 Firethorn '2'
v3.0.2 - 12 Nov 2024
Fixed
- Patched up exceptions thrown for JWT decode failures
🥀 Firethorn
v3.0.1 - 8 Nov 2024
Fixed
- Check DB connection on user
🥀 Firethorn
v3.0 - 7 Nov 2024
Added
- Auth v3 comes with built-in middleware that integrates with Leaf which means you don't need to write the above or your own middleware or even use guards
- removes the numerous redirect options and removes session guards as well.
- This release adds a super powerful user object which can be used to get user data from the auth layer and db layer
- When you call any method that doesn't exist on the user object, Leaf Auth will assume that you mean to get data related to the current user from the database
- Added
updatePassword()
method to quickly update user passwords in db
Fixed
- Fixed outdated JWT options
Changed
- Session and token auth is more normalized, leaving side effects to you instead of trying to anticipate what you want to do (to the detriment of other users).
- Uniques are now shared between
register()
andupdate()
- Session/Token auth + login, register and update all behave the same way, which leads to more predictable and consistent behaviour
- Back to the user object, it used to return an array which was the user information without any hidden fields. This behaviour has been updated to now return an entire user class. This class has methods and properties for getting user data, tokens and related db as we saw above
- Switched config to camel case to match other modules
Removed
- Removed all redirect configs
- Removed session guards in favour of new middleware
Beyond these changes, we've maintained every other thing v2 came with which means if you had no custom config and didn't use session guards, you can upgrade to v3 with almost zero changes to your existing code.
🔐 Robben Island
v2.4 - 25 August 2024
Added
- Added internal safeties for non-existent values
- Added autoConnect test when no connection is detected
Fixed
- Added
SESSION_REDIRECT_ON_REGISTER
by @milosPavic @ibnsultan - Returned
false
instead ofnull
when errors occur
Changed
- Updated to Leaf's new config API
Removed
- Removed unused methods
🔐 Château d'If '2'
🔐 Château d'If '1'
🔐 Château d'If
v2.3.0 - 1 Sep 2023
Added
- Added
SESSION_REDIRECT_ON_LOGIN
config - Added
SESSION_COOKIE_PARAMS
config - Added
SESSION_LIFETIME
config - Added option to pass session options to
Auth\Session::init()
Fixed
- Improved session support throughout lib
🔐 Château d'If [Beta]
v2.3.0-beta - 24 Aug 2023
This a beta release, you can find the docs at beta.leafphp.dev
Added
- Added
SESSION_REDIRECT_ON_LOGIN
config - Added
SESSION_COOKIE_PARAMS
config - Added
SESSION_LIFETIME
config - Added option to pass session options to
Auth\Session::init()
Fixed
- Improved session support throughout lib