Suchy
Explore posts from serversBABetter Auth
•Created by Suchy on 3/21/2025 in #help
Server side Stripe usage
Hi, I'm focusing to use better-auth mostly (only) on the server, my client code is not aware of better-auth. My stack is deno + hono + htmx.
So for it goes well. Hono route gets form data, calls auth.apisignInEmail and handles the response from that. Works good, I like that approach.
Now I need to setup payments. Docs says I need auth client. IS there a way to deal with that only o nserver side? Of course I understand I will need some Stripe clienta at some point to show checkout ui, but I wonder how far I can get with my server-only apporach?
Thanks ❤️
1 replies
Expose package scripts
Hey, I'd like to run a script which is in one of installed packages. Something like (fake syntax)
deno amazingFramework list
. Where list
is the script and amazingFramework
is name of package. Node deals with that with bin
in package.json and .bin directory.
Is it possible to do similar thing in deno?1 replies
DTDrizzle Team
•Created by Suchy on 7/31/2023 in #help
First parameter has member 'readable' that is not a ReadableStream.
Hi,
I'm trying to use Vercel (lambdas not edge) and Planetscale. On localhost it works fine, but when deploy I'm getting error. It happens with every query. Any ideas?
```Unhandled Promise Rejection {"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"TypeError: First parameter has member 'readable' that is not a ReadableStream.","reason":{"errorType":"TypeError","errorMessage":"First parameter has member 'readable' that is not a ReadableStream.","stack":["TypeError: First parameter has member 'readable' that is not a ReadableStream."," at assertReadableStream (/var/task/node_modules/web-streams-polyfill/dist/ponyfill.js:362:19)"," at convertReadableWritablePair (/var/task/node_modules/web-streams-polyfill/dist/ponyfill.js:3524:9)"," at ReadableStream.pipeThrough (/var/task/node_modules/web-streams-polyfill/dist/ponyfill.js:3608:29)"," at fetchFinale (node:internal/deps/undici/undici:10965:56)"," at mainFetch (node:internal/deps/undici/undici:10857:9)"," at processTicksAndRejections (node:internal/process/task_queues:95:5)"]},"promise":{},"stack":["Runtime.UnhandledPromiseRejection: TypeError: First parameter has member 'readable' that is not a ReadableStream."," at process.<anonymous> (file:///var/runtime/index.mjs:1186:17)"," at process.emit (node:events:525:35)"," at process.emit (/var/task/node_modules/source-map-support/source-map-support.js:516:21)"," at emit (node:internal/process/promises:149:20)"," at processPromiseRejections (node:internal/process/promises:283:27)"," at processTicksAndRejections (node:internal/process/task_queues:96:32)"]}
Unknown application error occurred
Runtime.Unknown
2 replies