Joaquim Ley
zValidator not coercing types correctly
You should change from:
c.req.query()
to c.req.valid('query')
Reference:
- https://hono.dev/docs/guides/validation10 replies
Synchronous function returns no value unless await
Got it, that makes sense -- server actions are async by nature. (https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations)
Please provide all context next time so we can all better help you 🚀
Don't forget to mark this thread as Solved ✅
6 replies
Synchronous function returns no value unless await
Can you please provide the details of the
getEbayAuthUrl()
function (don't forget to omit any secrets/api keys if that's the case)
Also, have you tried to console.log("authUrl: ", authUrl
to actually see what's being returned vs what's being stored in the database?6 replies