Skip to content

Releases: leafsphp/auth

🥀 Blackthorn

06 Dec 15:51
Compare
Choose a tag to compare

v3.2 - 6 Dec 2024

Fixed

  • Rename model get() to table() to avoid confusion with Leaf DB get()

Changed

  • Add overload function to skip calling get() on model

🥀 Hawthorn '1'

03 Dec 22:50
Compare
Choose a tag to compare

v3.1.1 - 3 Dec 2024

Fixed

  • Disable password auth when using fromOAuth()

🥀 Hawthorn

02 Dec 10:06
Compare
Choose a tag to compare

v3.1 - 2 Dec 2024

Added

  • Added fromOAuth() method to save a user and create a new session from an OAuth response
  • Added oauthToken() to get currently active tokens added with fromOAuth()

Changed

  • Replaced user relationships with model for interacting with other tables with user data

🥀 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)