Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions gsecure/app/api/v1/vault/add-item/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ export async function POST(req) {

// Verify the token
const decoded = await verifyAccessToken(token);
console.log("decoded at route : ",decoded._id)

// Find the user by ID from the token payload
const owner = await User.findById(decoded._id);
console.log("ownere is : ",owner);
if (!owner) {
return NextResponse.json(
{ success: false, message: "User not found." },
Expand Down