Skip to content

Commit

Permalink
feat: corrected user Request type
Browse files Browse the repository at this point in the history
  • Loading branch information
rishavvajpayee committed Sep 24, 2024
1 parent a60ba45 commit 88c4d5f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ export const config = {
};

interface RequestWithUser extends NextRequest {
user?: any;
user?: {
id: string,
email: string,
};
}

export const verifyJWT = async (token: string): Promise<JWTPayload | null> => {
Expand Down

0 comments on commit 88c4d5f

Please sign in to comment.