mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-17 06:34:57 +00:00
Refactor auth middleware to accept multiple auth modes
This commit is contained in:
@@ -18,7 +18,7 @@ import { serviceTokenDataController } from '../../controllers/v1';
|
||||
router.get(
|
||||
'/',
|
||||
requireAuth({
|
||||
acceptedAuthModes: ['st']
|
||||
acceptedAuthModes: ['serviceToken']
|
||||
}),
|
||||
param('serviceTokenDataId').exists().trim(),
|
||||
validateRequest,
|
||||
|
||||
Reference in New Issue
Block a user