Skip to content

Commit

Permalink
fix(example): return userId from middleware (#58)
Browse files Browse the repository at this point in the history
The middleware doesn't return userId eventhough it's used in the action
  • Loading branch information
theboxer authored Jan 31, 2024
1 parent 8e68d4c commit 74f796b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/example-app/src/lib/safe-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ export const authAction = createSafeActionClient({
"PARSED INPUT:",
parsedInput
);

return userId;
},
handleReturnedServerError,
});

0 comments on commit 74f796b

Please sign in to comment.