Skip to content

Conversation

@aadamcik
Copy link
Contributor

❓ Type of change

  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

This update allows to pass custom or multiple guards to auth.check() method. For example we have multiple guards and we want to check for authentication on all guards without actually requiring to be authenticated.

@thetutlage
Copy link
Member

Can we instead add a checkUsing method similar to authenticateUsing? The reason is, we have pass through methods like check, authenticate, user that always use the default guard and set some internal flags.

So maybe, having an additional method will be better

@aadamcik
Copy link
Contributor Author

@thetutlage updated

@thetutlage thetutlage merged commit 7ad0436 into adonisjs:9.x Sep 20, 2025
7 checks passed
@thetutlage
Copy link
Member

Looks good. Thanks πŸ™

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants