clerk-sveltekit
clerk-sveltekit copied to clipboard
Calling Clerk server side
First of all, great package. Secondly, I'd like to ask if this package allows us to call Clerk server-side.
From this section on Readme, first of all I believe locals
in reality gives you the userId
in session
, not the entire Clerk user object
, right?
Secondly, let's say I want to programatically create an organization for a user, after he signs up. Can I do it using this package? I noticed that you expose Clerk
on the window
object, which I can use on client Svelte components. What about server side? Is what I'm getting in locals
the only thing I can get from Clerk? And no ability to make calls?
And if so, would I have to use their JS SDK?
Update: Looking deeper into the package code, it seems like on initializeClerkClient
you're making clerk
available only on the window
object. So that means there's no way the package intends to allow use of clerk
server side, right?