Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Complete][Phase1] #57

Merged
merged 9 commits into from
Sep 21, 2024
Prev Previous commit
Next Next commit
Merge branch 'release/agent-api' into dev-eric
  • Loading branch information
TechAlchmy authored Aug 30, 2024
commit 8960c25d8b04a09ea0cd7f5baeb2035e24c634a6
2 changes: 2 additions & 0 deletions app/lib/authMiddleware.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { NextResponse, type NextRequest } from 'next/server';
import jwt from 'jsonwebtoken';

import { config } from '../config';


// verify token for protected route
export function verifyJWT(request: NextRequest) {
const authHeader = request.headers.get('Authorization');
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.