MCPcopy Create free account
hub / github.com/WebDevSimplified/course-platform / syncClerkUserMetadata

Function syncClerkUserMetadata

src/services/clerk.ts:30–41  ·  view source on GitHub ↗
(user: {
  id: string
  clerkUserId: string
  role: UserRole
})

Source from the content-addressed store, hash-verified

28}
29
30export function syncClerkUserMetadata(user: {
31 id: string
32 clerkUserId: string
33 role: UserRole
34}) {
35 return client.users.updateUserMetadata(user.clerkUserId, {
36 publicMetadata: {
37 dbId: user.id,
38 role: user.role,
39 },
40 })
41}
42
43async function getUser(id: string) {
44 "use cache"

Callers 2

GETFunction · 0.90
POSTFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected