Skip to content

Releases: leafsphp/auth

🥀 Firethorn '3'

12 Nov 19:50
Compare
Choose a tag to compare

v3.0.3 - 12 Nov 2024

Fixed

  • Patched up JWT expiry error
  • Patched up failures from non-numeric session lifetimes

🥀 Firethorn '2'

12 Nov 14:28
Compare
Choose a tag to compare

v3.0.2 - 12 Nov 2024

Fixed

  • Patched up exceptions thrown for JWT decode failures

🥀 Firethorn

08 Nov 19:51
Compare
Choose a tag to compare

v3.0.1 - 8 Nov 2024

Fixed

  • Check DB connection on user

🥀 Firethorn

07 Nov 03:12
Compare
Choose a tag to compare

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() and update()
  • 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

25 Aug 02:22
Compare
Choose a tag to compare

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 of null when errors occur

Changed

  • Updated to Leaf's new config API

Removed

  • Removed unused methods

🔐 Château d'If '2'

08 Oct 11:52
8844171
Compare
Choose a tag to compare

v2.3.2 - 8 Oct 2023

Fixed

  • Patched up issue with session lifetime (#19)

🔐 Château d'If '1'

12 Sep 08:34
4c299aa
Compare
Choose a tag to compare

v2.3.1 - 12 Sep 2023

Fixed

  • Added session check on expireSession() (#18)

🔐 Château d'If

01 Sep 18:14
Compare
Choose a tag to compare

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]

24 Aug 22:40
Compare
Choose a tag to compare
Pre-release

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

🔐 Devil's Island

26 May 20:49
0f3cbd7
Compare
Choose a tag to compare

v2.2.2 - 26 May 2023

Fixed

  • Fix where clause when fetching user (#14)
  • Allow custom timestamp format (#13)

Thanks @crosa7