@drifting ore Thanks, I see the getCurrentUser() function you created in
https://github.com/thomasballinger/convex-clerk-users-table/blob/a78a9083cede8b834a80e1c6c2d189ee08b490c9/convex/users.ts#L120
I'm confused about why tokenIdentifier doesn't seem to be in the repo. I was thinking the literal value of userIdentity.tokenIdentifier would be stored in the Convex database. For example, a user_settings table would have, say, userIdentityTokenIdentifier as a column. But I don't see 'tokenIdentifier' in your repo.
Given a repo for an app built on Convex, how can I infer what the columns for your users table is? In the users.ts file, these functions reference various columns like identity.subject or clerkUser.id. So perhaps the tokenIdentifier is in there somewhere.
In schema.ts, https://github.com/thomasballinger/convex-clerk-users-table/blob/a78a9083cede8b834a80e1c6c2d189ee08b490c9/convex/users.ts
there is a users table that has a column, clerkUser, as a UserJSON. So, I think this clerkUser JSON, which is @clerk/backend, is where the tokenIdentifier is being stored. If this is correct, for a use case of storing user settings, should I really be storing a JSON type for a clerkUser column, or was this just a quick way to build for demonstration purposes?