cake
Explore posts from serversBABetter Auth
•Created by cake on 3/6/2025 in #help
Is it possible to create a session manually?
I'm in the process of trying to link a device to a users account. Because this is so different from what better-auth provides currently, we're doing this external to better-auth, but once we've verified that a device has been linked to the account, we need to generate a session / have better auth manage the session for us.
Is there a way to generate / create a session manually so that we can return it, and have better auth maintain it for us?
These are external devices running android / ios, are not users, and are not linked to a user, but rather an organization / location. Cookies probably isn't a the best way to manage the session. I saw there was a jwt plugin. If we use the JWT plugin and cookies at the same time, in the same better-auth instance, are they going to play nicely together?
1 replies
CDCloudflare Developers
•Created by cake on 8/6/2023 in #workers-help
What's the difference between using R2 URL from worker vs Attaching R2 Bucket to worker?
I just noticed in our cloudflare worker that we're not attaching R2 buckets, but instead accessing R2 data via fetch and a public URL.
What is the difference? Is there any clear advantage to attaching a bucket?
3 replies
CDCloudflare Developers
•Created by cake on 8/4/2023 in #workers-help
Apply Cloudflare Auto-Minify for Worker requests that return R2 html, js, and png files
I've turned on auto-minify on cloudflare and cleared the cache, but I don't see Cloudflare applying any auto-minifying to my pages.
The flow currently is client request -> worker -> r2 file. It seems like this bypasses the Auto-Minify logic layer. Is there a way to enable this?
8 replies