Skip to content

Commit

Permalink
update auth middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
necessarylion committed Dec 16, 2023
1 parent 9145610 commit ed716b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/dox-auth/lib/src/auth_middleware.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<IDoxRequest> handle(IDoxRequest req) async {
class AuthMiddleware implements IDoxMiddleware {
@override
Future<IDoxRequest> handle(IDoxRequest req) async {
Auth auth = Auth();

// verify token from header and get user data from database
Expand Down

0 comments on commit ed716b2

Please sign in to comment.