#[SOLVED] clerk

34 messages · Page 1 of 1 (latest)

plucky pebble
#

Hi, I don't need help I just wanted to ask about weather a clerk integration will be coming or not since I have read Tessa say last year that you met the clerk team and are discussing an integration.
I had to implement a custom token auth just to get clerk working with my system and its not exactly the best yk.

As always
Thank you appwrite.

plucky pebble
# ripe locust why do you want to use clerk?

well first of all because I originally used it in my application, second of all clerk clears my mind and just handles everything from users to middleware. and I just like clerk I guess.
but why would you ask why do I want to use clerk, I think alot of people like to use clerk for easier auth and better security etc.

#

Not saying anything about appwrite, I do have 2 other projects using appwrite's auth still, one with ssr login too.
But this application is a bit complex and big and does have alot of collaboration thats why.

#

plus that I already have clients using the application so it would be a little painful to move off of clerk now.

ripe locust
#

They have components that you can throw in that handle the auth, right? i know that makes things easier

#

the middleware part is good to know too

plucky pebble
#

Yeah much like that

ripe locust
#

interesting that Next.js says to not rely on middleware for auth, though

plucky pebble
#

Aside from that "and please don't get me wrong" other services like convex, supabase do have clerk integration.

#

I just thought that it was famous for everyone I guess

#

I do understand that appwrite is in beta that's why I just asked if its planned or not didn't request it :).

ripe locust
plucky pebble
#

Oh! alrighht didn't know about this that's interesting I'll be taking a look for sure, sorry for the trouble and thanks always I love appwrite and especially the community its all great.

ripe locust
ripe locust
plucky pebble
#

Yeah I have been testing just now and I set it up on both sides but I did get an error with that description
The state is missing or does not have enough characters and is therefore considered too weak. Request parameter 'state' must be at least be 8 characters long to ensure sufficient entropy.

ripe locust
plucky pebble
#

okay I think it worked even though the redirection didn't still function but I guess it'll work.
one more interseting part clerk components and middleware etc.. do actually work.

#

/console/auth/oauth2/success?project=not-sure&domain=.api.my-appwrite-domain&key=sensetive#:1 Unchecked runtime.lastError: The message port closed before a response was received.
success:222

       POST https://o1063647.ingest.us.sentry.io/api/4504158071422976/envelope/?sentry_key=not-sure&sentry_version=7&sentry_client=sentry.javascript.sveltekit%2F8.38.0 403 (Forbidden)

/console/auth/oauth2/success?project=projectId-here&domain=.api.my-appwrite-domain&key=sensetive-info-here#:1 Failed to launch 'appwrite-callback-callback-here://?project=projectId-here&domain=.api.my-appwrite-domain&key=sensetive info here' because the scheme does not have a registered handler.
envelope/:1

       POST https://o1063647.ingest.us.sentry.io/api/4504158071422976/envelope/?sentry_key=not-sure&sentry_version=7&sentry_client=sentry.javascript.sveltekit%2F8.38.0 403 (Forbidden)

service-worker.js:1

       Uncaught (in promise) TypeError: Failed to fetch
at o (service-worker.js:1:38041)

o @ service-worker.js:1
await in o
(anonymous) @ service-worker.js:1

here is what happens in appwrites callback im not sure if its actually related i just copied it and removed sensetive data

#

it does redirect me to appwrite but appwrite never redirects me to my app

#

Failed to launch 'appwrite-callback-sensetive://?project=sensetive&domain=.api.sensetive&key=sensetive' because the scheme does not have a registered handler.

ripe locust
plucky pebble
#

oh wait

#

I didnt save the file...

#

ehh whatever man it works... appwritepeepo

#

yeah it looks like it does make a session on both sides so you still need to logout on both sdks appwrite's and clerk's, but thats fine because I can use the middleware and the components

#

Thanks for the help Steven really made my day here appwriteheart appwritebow

plucky pebble
#

the best community and team

#

(solved) clerk