From 74f796bb1ed94abf90a8eba55fc70e68ce7589f4 Mon Sep 17 00:00:00 2001 From: John Peca Date: Wed, 31 Jan 2024 16:48:22 +0100 Subject: [PATCH] fix(example): return userId from middleware (#58) The middleware doesn't return userId eventhough it's used in the action --- packages/example-app/src/lib/safe-action.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/example-app/src/lib/safe-action.ts b/packages/example-app/src/lib/safe-action.ts index 867835df..9e7e4a0a 100644 --- a/packages/example-app/src/lib/safe-action.ts +++ b/packages/example-app/src/lib/safe-action.ts @@ -38,6 +38,8 @@ export const authAction = createSafeActionClient({ "PARSED INPUT:", parsedInput ); + + return userId; }, handleReturnedServerError, });