Skip to content

Configure basic auth guard and export authFinder mixin from its own subpath

Compare
Choose a tag to compare
@thetutlage thetutlage released this 02 Apr 09:11
· 4 commits to develop since this release

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

New Contributors

Full Changelog: v9.1.1...v9.2.0