| 8 | }; |
| 9 | |
| 10 | interface RequestWithUser extends NextRequest { |
| 11 | user?: { |
| 12 | id: string; |
| 13 | email: string; |
| 14 | }; |
| 15 | } |
| 16 | |
| 17 | export const verifyJWT = async (token: string): Promise<JWTPayload | null> => { |
| 18 | const secret = process.env.JWT_SECRET || ''; |
nothing calls this directly
no outgoing calls
no test coverage detected