MVP, working sentry scraper
This commit is contained in:
@ -22,4 +22,4 @@ export default class AuthMiddleware {
|
||||
await ctx.auth.authenticateUsing(options.guards, { loginRoute: this.redirectTo })
|
||||
return next()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -28,4 +28,4 @@ export default class GuestMiddleware {
|
||||
|
||||
return next()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -8,12 +8,9 @@ import type { NextFn } from '@adonisjs/core/types/http'
|
||||
* The request continues as usual, even when the user is not logged-in.
|
||||
*/
|
||||
export default class SilentAuthMiddleware {
|
||||
async handle(
|
||||
ctx: HttpContext,
|
||||
next: NextFn,
|
||||
) {
|
||||
async handle(ctx: HttpContext, next: NextFn) {
|
||||
await ctx.auth.check()
|
||||
|
||||
return next()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user