Is it a correct way to get Clerk user data ...?
Solution:Jump to solution
Webhooks | Clerk
Information about receiving event notifications with Clerk webhooks
26 Replies
from the docs, should be the correct way of using it
only thing to be careful is getting rate limited with multiple requests
yes, I'm worried about this.
If I have same user comments, is Clerk going to fetch multiple times for that user data?
sorry for my bad English.
if you need the user data consistently
you can store local copies in the database
Solution
Webhooks | Clerk
Information about receiving event notifications with Clerk webhooks
because I want to show user info in comments like this:
I know this, but I had some problem with expose local ip
GitHub
408 when connecting to a url? · Issue #563 · localtunnel/localtunnel
I'm currently exposing a websocket server (port 8080) on my server, through a node.js file: import { WebSocketServer } from "ws"; import localTunnel from "localtunnel"; cons...
you can use some external service on dev, and the correct callback on production
Webhook.site - Test, process and transform emails and HTTP requests
Instantly generate a free, unique URL and email address to test, inspect, and automate (with a visual workflow editor and scripts) incoming HTTP requests and emails
like this one
how? this tool looks like only do inspect data
with the webhook payload you can copy into your local database
I already code some logic
you can copy the webhook payload
and call yourself your local endpoint
i see
thx you, I think I will use the webhook solution.
Glad to help
found another solution
if I would install the
@clerk/nextjs/server
library. Would I still be able to create a procedure with this and use it inside my expo application (create-t3-turbo)?https://github.com/clerkinc/t3-turbo-and-clerk
@Sports Live you might want to look at our clerk T3 turbo to understand how data fetching works across everything but the you can call procedures using expo from trpc
GitHub
GitHub - clerkinc/t3-turbo-and-clerk: A t3 Turbo starter with Clerk...
A t3 Turbo starter with Clerk as the auth provider. - GitHub - clerkinc/t3-turbo-and-clerk: A t3 Turbo starter with Clerk as the auth provider.
for the ppl who has the same localtunnel problem.
you can try ngrok, it's working for me:
how to get the
profile_image_url
from images.clerk.dev
when using webhook?it comes right after the create hook in the updated hook. we have to process the image so the first one retuned is the OG image.
I see, thx for your answer.
nvm
I was doing stupid thing
it is
images.clerk.dev
sharing my webhook: ( /api/webhook/create-user.ts
)