We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83b4fb8 commit b55912cCopy full SHA for b55912c
README.md
@@ -401,6 +401,22 @@ export default authkitMiddleware({
401
});
402
```
403
404
+### Advanced: Direct access to the WorkOS client
405
+
406
+For advanced use cases or functionality not covered by the helper methods, you can access the underlying WorkOS client directly:
407
408
+```typescript
409
+import { getWorkOS } from '@workos-inc/authkit-nextjs';
410
411
+// Get the configured WorkOS client instance
412
+const workos = getWorkOS();
413
414
+// Use any WorkOS SDK method
415
+const organizations = await workos.organizations.listOrganizations({
416
+ limit: 10,
417
+});
418
+````
419
420
### Debugging
421
422
To enable debug logs, initialize the middleware with the debug flag enabled.
0 commit comments