Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Failing to extend context via createAuthMiddleware - Better Auth
BA
Better Auth
•
8mo ago
•
1 reply
Budi
Failing to extend context via createAuthMiddleware
I am passing
organisationName
organisationName
to the
auth.api.signInSocial
auth.api.signInSocial
method on the server
.
The middleware catches this argument however I cannot succeed at passing it so it
's available in the database hook
. How can I solve this
?
Thank you
.
Better Auth
Join
9,988
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
createAuthMiddleware context.returned
BA
Better Auth / help
4mo ago
Plugin to extend organization plugin
BA
Better Auth / help
11mo ago
Unable to access user email inside `createAuthMiddleware` when using social providers
BA
Better Auth / help
3mo ago
extend oauth state
BA
Better Auth / help
2mo ago