Oren
Oren
Explore posts from servers
BABetter Auth
Created by Oren on 2/23/2025 in #help
anonymous user details
Hello I've implemented anonymous plugin and it works well but I want to assign random name instead of "anonymous" to users and a custom email to users is there a way to achieve this?
5 replies
CCConvex Community
Created by Oren on 2/15/2025 in #show-and-tell
Launch Nicely - Ready to launch? Get your first customers today!
No description
3 replies
CDCloudflare Developers
Created by Oren on 2/8/2025 in #workers-help
Strange workers logs issues
Hello all I deploy sveltekit app to cloudflare workers and notice two strange behaviours going on with logs 1) Each page change on sveltekit app logs error POST is not allowed in this path or no action named default found error, I don't see this anywhere else other than worker logs (local, network tab also tried vercel logs and nodejs vps logs jus to make sure) so I think there is some clash happening with worker logs <> sveltekit adapter 2) My worker has two domains assigned www.domain.com and domain.com and I have a vps hosted service on api.domain.com meaning it has no relation to the workers but I get a log when I refresh the page at api.domain.com with not found error (page works fine its just falsy unexpected error log being logged on cloudflare workers logs dashboard) this is my log settings in wrangler.toml

[observability]
enabled = true

[observability.logs]
invocation_logs = false

[observability]
enabled = true

[observability.logs]
invocation_logs = false
3 replies
CCConvex Community
Created by Oren on 9/11/2024 in #support-community
Uncaught Error: Invalid state
No description
1 replies
CCConvex Community
Created by Oren on 9/1/2024 in #support-community
convex auth causes browser "leave site?" prompt on every redirect e.g. stripe or auth
No description
8 replies
CCConvex Community
Created by Oren on 8/23/2024 in #support-community
how to handle auth errors
Hey I'm trying to show an error to user when auth fails for example when their magic link is expired with auth.js / nextauth I could add error page specified with url param of the error and display it there but how can we handle it with convex auth?
2 replies
CCConvex Community
Created by Oren on 8/22/2024 in #support-community
how to use authRateLimits?
I see auth schema has authRateLimits defined and its in docs but not much info available on how to ratelimit the auth e.g. magic emails
3 replies
CCConvex Community
Created by Oren on 8/21/2024 in #support-community
sentry errors
No description
10 replies
CCConvex Community
Created by Oren on 8/17/2024 in #support-community
How to use rate limit with convex auth
I have my auth setup with http-email and I would like to rate limit it but it seems like not possible right now. I do use rate limiting for other mutations successfully second question is how to use rate-limiting in actions?
{
id: "http-email",
name: "Email",
type: "email",
maxAge: 60 * 60 * 24,
sendVerificationRequest: async ({ identifier, url }) => {
///..my email sending logic I want to rate limit
}
},
{
id: "http-email",
name: "Email",
type: "email",
maxAge: 60 * 60 * 24,
sendVerificationRequest: async ({ identifier, url }) => {
///..my email sending logic I want to rate limit
}
},
4 replies
CCConvex Community
Created by Oren on 8/17/2024 in #show-and-tell
Interior Render AI
No description
3 replies
CCConvex Community
Created by Oren on 8/16/2024 in #support-community
action is not available to runAction / app / typescript
No description
15 replies
CCConvex Community
Created by Oren on 8/16/2024 in #support-community
http action as webhook is not working
json {"code":"[Request ID: c3a345772419092f] Server Error: Uncaught TypeError: Request URL is undefined","trace":"Uncaught TypeError: Request URL is undefined\n at <anonymous> (../../convex/renders.ts:137:22)\n at async invokeFunction (../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/convex/src/server/impl/registration_impl.ts:79:11)\n at async invokeHttpAction (../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/convex/src/server/impl/registration_impl.ts:422:0)\n at async HttpRouter.runRequest (../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/convex/src/server/router.ts:322:16)\n"}
json {"code":"[Request ID: c3a345772419092f] Server Error: Uncaught TypeError: Request URL is undefined","trace":"Uncaught TypeError: Request URL is undefined\n at <anonymous> (../../convex/renders.ts:137:22)\n at async invokeFunction (../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/convex/src/server/impl/registration_impl.ts:79:11)\n at async invokeHttpAction (../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/convex/src/server/impl/registration_impl.ts:422:0)\n at async HttpRouter.runRequest (../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/convex/src/server/router.ts:322:16)\n"}
11 replies
CCConvex Community
Created by Oren on 8/15/2024 in #support-community
How to get user details in server component
How can I get user details with convex auth on nextjs server component? I have a query that works when used in client side with useQuery but it doesn't work with fetchQuery
15 replies
CCConvex Community
Created by Oren on 8/15/2024 in #support-community
auth docs are misleading
https://labs.convex.dev/auth/setup says run npm create convex@latest -> next.js -> convex auth but only options are clerk and none
3 replies
CCConvex Community
Created by Oren on 8/4/2024 in #support-community
using zod schema for validation
import { z } from "zod";
import { NoOp } from "convex-helpers/server/customFunctions";
import { zCustomMutation } from "convex-helpers/server/zod";
import { mutation } from "./_generated/server";

const zMutation = zCustomMutation(mutation, NoOp);

export const emailFormSchema = z.object({
email: z.string().email(),
});

export const add = zMutation({
args: emailFormSchema,
handler: async (ctx, args) => {
await ctx.db.insert("emails", { email: args.email });
},
});
import { z } from "zod";
import { NoOp } from "convex-helpers/server/customFunctions";
import { zCustomMutation } from "convex-helpers/server/zod";
import { mutation } from "./_generated/server";

const zMutation = zCustomMutation(mutation, NoOp);

export const emailFormSchema = z.object({
email: z.string().email(),
});

export const add = zMutation({
args: emailFormSchema,
handler: async (ctx, args) => {
await ctx.db.insert("emails", { email: args.email });
},
});
I want to use the zod schema directly like above emailFormSchema but its giving me error; Type 'ZodObject<{ email: ZodString; }, "strip", ZodTypeAny, { email: string; }, { email: string; }>' is not assignable to type 'void | ZodValidator | undefined'.
16 replies
CDCloudflare Developers
Created by Oren on 3/2/2024 in #pages-help
Is it possible to use cloudflare for SaaS with cloudflare pages site?
Is it possible to use cloudflare for SaaS with cloudflare pages site?
15 replies
CDCloudflare Developers
Created by Oren on 2/10/2024 in #pages-help
Sveltekit actions on pages with smart placement
Hello, I host sveltekit on cf pages pro and have smart placement enabled but cf-placement header is always local-X so placement is not working. Wondering if sveltekit actions are not meant to work with smart placement or if there are any other work arounds? Because my backend is in EU I would like my actions to run on EU for optimal latency when possible thanks in advance!
1 replies