memos/server/router/api/v1
Johnny 50606a850e fix(auth): resolve token refresh and persistence issues
- Fix cookie expiration timezone to use GMT (RFC 6265 compliance)
- Use Connect RPC client for token refresh instead of fetch
- Fix error code checking (numeric Code.Unauthenticated instead of string)
- Prevent infinite redirect loop when already on /auth page
- Fix protobuf Timestamp conversion using timestampDate helper
- Store access token in sessionStorage to avoid unnecessary refreshes on page reload
- Add refresh token cookie fallback for attachment authentication
- Improve error handling with proper type checking

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-18 20:56:54 +08:00
..
test refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00
acl_config.go refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00
acl_config_test.go refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00
activity_service.go chore: fix linter 2025-10-31 08:36:12 +08:00
attachment_service.go refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00
auth_service.go fix(auth): resolve token refresh and persistence issues 2025-12-18 20:56:54 +08:00
auth_service_client_info_test.go chore: fix linter 2025-08-31 20:22:32 +08:00
common.go refactor: remove unused constants 2025-10-16 20:40:46 +08:00
connect_handler.go refactor: migrate to connect-rpc (#5338) 2025-12-11 19:49:07 +08:00
connect_interceptors.go refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00
connect_services.go refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00
header_carrier.go fix(backend): correct generic type parameter in withHeaderCarrier helper 2025-12-12 08:06:13 +08:00
health_service.go refactor(store): remove deprecated migration_history table and backward compatibility code 2025-12-01 22:54:30 +08:00
idp_service.go refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00
instance_service.go refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00
memo_attachment_service.go refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00
memo_relation_service.go refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00
memo_service.go refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00
memo_service_converter.go refactor: rename workspace to instance throughout codebase 2025-11-05 23:35:35 +08:00
memo_service_filter.go refactor: deprecate old filter 2025-07-22 21:25:57 +08:00
reaction_service.go refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00
resource_name.go refactor: rename workspace to instance throughout codebase 2025-11-05 23:35:35 +08:00
shortcut_service.go refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00
user_service.go refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00
user_service_stats.go refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00
v1.go refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00