Skip to content

Commit

Permalink
Use token doc instead of token
Browse files Browse the repository at this point in the history
  • Loading branch information
a3957273 committed Jan 3, 2024
1 parent 0873b37 commit 50764f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/utils/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export async function getUserFromAuthHeader(
}

return {
token,
token: tokenDoc,
user: {
_id: tokenDoc.user,
id: tokenDoc.user,
Expand Down

0 comments on commit 50764f0

Please sign in to comment.