better-auth organizations
When running
organizationCreation
's beforeCreate and afterCreate I don't see any request being passed in. It's only the organization details even though I am passing in the headers directly to the api (because I'm calling this from the server).
7 Replies
Any help would be greatly appreciated!
any chance anyone knows how to resolve this?
yeah it only passes the request object when it's a request from a client. we're considering making
request
a context
instead so it can pass all the context from the endpoint. Feel free to open GH issue if you haven't.I haven’t yet but is there something better kind of workaround/hack I can use for it or do I need to wait for gh issue to be resolved?
yes. unless you can trigger it from the client instead
Yes as in there’s a workaround or there isn’t? For this particular case I cannot trigger this from the client-side.
you should be able to pass request directly
Awesome, I’ll try that out. Thanks!