Releases: adonisjs/auth
Fix withAuthFinder mixin to not generate duplicate types for the BaseModel
9.3.2 (2025-02-24)
Bug Fixes
- use explicit return type for withAuthFinder mixin (ed2907f)
What's Changed
- fix: remove duplicate mixin's type declaration by @adamcikado in #250
New Contributors
- @adamcikado made their first contribution in #250
Full Changelog: v9.3.1...v9.3.2
Update dependencies
9.3.1 (2025-01-17)
Full Changelog: v9.3.0...v9.3.1
Add verifyPassword to the AuthFinder mixin
The verifyPassword
can be used to verify the plain text password against the password hash.
Features
- add verifyPassword method to user for verifying password against hash (5dbe70f)
Full Changelog: v9.2.4...v9.3.0
Install missing dependencies
This release addresses missing dependencies needed for strict package managers like Yarn
and pnpm
.
We've also updated several development dependencies and automated the release process using GitHub Actions.
Full Changelog: v9.2.3...v9.2.4
Update peer range to work with Lucid 20 and 21
- chore: allow lucid@20 in peer range 6061e08
Full Changelog: v9.2.2...v9.2.3
Update dependencies and update lucid peer range
Do not cache models when running in hot mode
- refactor: do not cache models import when running in hot mode 950ee51
- chore: update dependencies 7a2540d
Full Changelog: v9.2.0...v9.2.1
Configure basic auth guard and export authFinder mixin from its own subpath
The @adonisjs/auth
can be used with Lucid if someone creates a guard that does not use Lucid under the hood.
However, we were exporting the withAuthFinder
mixin from the main entrypoint of the package and this mixin relies on Lucid. Therefore Lucid becomes a hard dependency of the Auth package.
After this release, we have moved the mixin to its own sub module and you can import it as follows.
- import { withAuthFinder } from '@adonisjs/auth'
+ import { withAuthFinder } from '@adonisjs/auth/mixins/lucid'
Commits
- refactor: export Lucid mixins from its own subpath with descriptive name 15d3761
- Merge pull request #243 from parker-codes/chore/add-basic-auth-guard c61ccb1
- Merge pull request #239 from adonisjs/fix/hard-dependency d53cb84
- chore: add Basic auth guard c58e683
- fix(mixins): update deprecation status f8a5715
- fix(mixins): ensure we do not lose type of withAuthFinder 96663d3
- fix(mixins): rewrite broken imports 19d7042
- fix(mixins): add mixins file to tsup entry e4df074
- fix(mixins): remove withAuthFinder from root export 5d04dde
What's Changed
- fix(mixins): remove withAuthFinder from root export by @RomainLanz in #239
- chore: add Basic auth guard by @parker-codes in #243
New Contributors
- @parker-codes made their first contribution in #243
Full Changelog: v9.1.1...v9.2.0
Update peer dependencies range
- chore(package): update dependencies 7a0045b
Full Changelog: v9.1.0...v9.1.1
Add basic auth guard
This release adds back the basic auth guard. The documentation will follow by the EOD.
Commits
- fix: typing issues 7eb5278
- feat: finish basic auth guard implementation b02f8c2
- feat: implement user provider for basic auth guard bd285e7
- feat: add basic auth guard 9ed04af
Full Changelog: v9.0.3...v9.1.0