diff --git a/templates/middleware/Auth.txt b/templates/middleware/Auth.txt index 1a26ad0..943ce57 100644 --- a/templates/middleware/Auth.txt +++ b/templates/middleware/Auth.txt @@ -32,7 +32,7 @@ export default class AuthMiddleware { */ let guardLastAttempted: string | undefined - for (let guard of guards) { + for (const guard of guards) { guardLastAttempted = guard if (await auth.use(guard).check()) {