K
Kinde•4mo ago
H4x0rus

kinde and Cloudflare Workers

Hey guys, planning to use Kinde on a new project and wanted to know if there are any more docs for integrating Kinde with Cloudflare workers. There's a small example in the docs but I really can't gather enough information from that to properly get started. Are there any examples perhaps?
4 Replies
H4x0rus
H4x0rus•4mo ago
I have an SPA that I want to log in to Kinde with. Then I want to access some data stored in cloudflare D1 database (e.g. User Shopping Basket) based on the user through a worker. From Kinde React Kit I can get the JWT. Now I'm not 100% sure how to validate it correctly on the Worker. I'm not quite sure how nextjs is related to this, my system is running on Cloudflare so Nextjs is not an option There's a small doc about this on the kinde website but nothing more so I'm guessing they don't have a good approach for this yet, I guess I'll need to work around it then Yeah but im specifically trying to use a Cloudflare worker and not next js
VKinde
VKinde•4mo ago
Hey! What exactly are you getting hung up on in the deployment? It should be as straightforward as just deploying your app that works locally, adjusting for the merge, then it should be fine working
Zuka
Zuka•4mo ago
Hi! I'm trying to get set up on CF workers as well. I've npm installed the @kinde-oss/kinde-node dependency, but since the package uses XMLHttpRequest which isn't available inside the worker, I am kind of stuck. I could implement my own version, but I just wanted to hear, if you have a version that doesn't use XMLHttpRequest.
Mehanika
Mehanika•4mo ago
@quacksire 👀??