fix(lint): Add ctx shim to routes/auth/totp

- Add credentialManager, totpConfig, saveTotpConfig, session to deps
- Create ctx shim for backward compatibility
- Fix hasOwnProperty anti-pattern (use Object.prototype.hasOwnProperty.call)

Result: 54 errors → 0 errors
This commit is contained in:
Krystie
2026-03-29 22:37:21 -07:00
parent 5baa97bbf9
commit a86546181e
3 changed files with 29 additions and 3 deletions

View File

@@ -18,6 +18,7 @@ module.exports = function(ctx) {
authManager: ctx.authManager,
credentialManager: ctx.credentialManager,
totpConfig: ctx.totpConfig,
saveTotpConfig: ctx.saveTotpConfig,
session: ctx.session,
asyncHandler: ctx.asyncHandler,
errorResponse: ctx.errorResponse,