```
I am trying to use the firstName and lastname in my schema. But it is not allowing me to do so.
7 Replies
Looks like your schema syntax might be a bit off. as I don't know more about your schema. can you confirm it follows this pattern
yes
similar to that
with some more utility related fields
If I mention the tokenIdentifier field, it doesn't throw this error.
I am trying to integerate Clerk and convex
I see so its auth related!
Are you defining custom table for auth users?
You should check this repo out and see how convex schema and functions are defined
https://www.convex.dev/templates/nextjs-app-router
Next.js 14 App Router
This example app showcases Convex backend powering a Next.js app.
I think you’ll need that for JWT
Actually I am redefining the users table for my clerk authentication with some extra fields based on the clerk configuration.
what is the syntax for optional Fields
I was using
v.string().isOptional
and that was issue here.v.optional(v.string())
thanks for the reply.