You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add JWT authentication debugging and plaintext auth support
This commit introduces comprehensive JWT debugging capabilities and experimental
plaintext authentication support to help developers troubleshoot authentication issues.
**New Features:**
- getUserIdentityDebug() method returns detailed error information when JWT validation fails
- getUserIdentityInsecure() method for accessing raw plaintext tokens (development/debugging only)
- setAuthInsecure() client method for plaintext authentication mode
**Backend Implementation:**
- New 1.0/getUserIdentityDebug and 1.0/getUserIdentityInsecure syscalls in Rust
- PlaintextUser identity type added to authentication system
- Enhanced error metadata for JWT validation failures
**Frontend Integration:**
- TypeScript Auth interface extended with new debug methods
- React client support for plaintext authentication mode
- WebSocket protocol updates for plaintext token handling
**Backward Compatibility:**
- Existing getUserIdentity() method unchanged
- All current authentication flows continue to work
- New features are opt-in and don't affect existing implementations
This implementation enables developers to get detailed JWT error messages instead of
generic authentication failures, significantly improving the debugging experience
for authentication issues.
0 commit comments