diff --git a/packages/dox-auth/lib/src/auth_middleware.dart b/packages/dox-auth/lib/src/auth_middleware.dart index 9a88ad8..efc8634 100644 --- a/packages/dox-auth/lib/src/auth_middleware.dart +++ b/packages/dox-auth/lib/src/auth_middleware.dart @@ -6,8 +6,9 @@ import 'package:dox_query_builder/dox_query_builder.dart'; const String AUTH_REQUEST_KEY = 'dox_authentication_instance'; -class AuthMiddleware { - static Future handle(IDoxRequest req) async { +class AuthMiddleware implements IDoxMiddleware { + @override + Future handle(IDoxRequest req) async { Auth auth = Auth(); // verify token from header and get user data from database