javascript
javascript copied to clipboard
poc(clerk-js): Initialize client more quickly [POC - DO NOT MERGE]
Description
Speed up initialization of Clerk Client by using JWT from session cookie instead of waiting for the fetch to resolve
Checklist
- [ ]
pnpm testruns as expected. - [ ]
pnpm buildruns as expected. - [ ] (If applicable) JSDoc comments have been added or updated for any package exports
- [ ] (If applicable) Documentation has been updated
Type of change
- [ ] 🐛 Bug fix
- [ ] 🌟 New feature
- [ ] 🔨 Breaking change
- [ ] 📖 Refactoring / dependency upgrade / documentation
- [ ] other:
Summary by CodeRabbit
-
Bug Fixes
- Improved session initialization by enabling earlier session state loading during app startup, reducing initial load time for returning users with existing sessions.