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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user