passwordless v0.8.0 Release Notes

Release Date: 2019-07-30 // over 2 years ago
  • ๐Ÿ’ฅ Breaking changes

    ๐Ÿšš This version moves from storing the session information in the cookies to the session. โฌ†๏ธ Your users will therefore have to sign in again after upgrading.

    โฌ†๏ธ To provide a smoother experience, you can use the provided session upgrade helper like this:

    def current_user
      @current_user ||=
        authenticate_by_session(User) ||

    ๐Ÿ—„ Deprecations

    • Deprecates authenticate_by_cookie, use authenticate_by_session.(#56)

    โž• Added

    • restrict_token_reuse disables session reuse (#51)

    ๐Ÿ”„ Changed

    • Optionally pass request to after_session_save (#49)
    • Sign in via Passwordless::Session instead of authenticatable and store it in session instead of cookies (#56)
    • sign_in helper now expects a Passwordless::Session.