Learn common patterns and best practices for using the Clerk SDK effectively.
For full implementation details and code examples, load:
Read(${CLAUDE_SKILL_DIR}/references/implementation-guide.md)
| Error | Cause | Solution |
|---|---|---|
| auth() returns null | Not in server context | Use in Server Components or API routes |
| useUser() not updating | Component not re-rendering | Check ClerkProvider placement |
| getToken() fails | Template not configured | Configure JWT template in dashboard |
| orgId is null | No organization selected | Prompt user to select organization |
Proceed to clerk-core-workflow-a for user sign-up and sign-in flows.
Basic usage: Apply clerk sdk patterns to a standard project setup with default configuration options.
Advanced scenario: Customize clerk sdk patterns for production environments with multiple constraints and team-specific requirements.