Deprecate device password endpoints to resolve JWT authentication errors #53
+11
−141
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Users encountered "无效的JWT token" errors when attempting to reset device passwords through account-based authentication. Per maintainer guidance, the standalone device password system is being replaced by AutoAuth.
Changes
Deprecated 5 password management endpoints - All now return HTTP 410 with migration guidance:
POST /devices/:uuid/password- Initial password setupPUT /devices/:uuid/password- Password modificationDELETE /devices/:uuid/password- Password deletionPUT /devices/:uuid/password-hint- Password hint managementGET /devices/:uuid/password-hint- Password hint retrievalBackward compatibility preserved:
uuidAuth,passwordMiddleware) remains unchangedhasPasswordandpasswordHintfieldsImpact: Eliminates confusing JWT errors by directing users to the AutoAuth system. Reduces codebase by ~130 lines while maintaining compatibility for legacy devices.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
checkpoint.prisma.io/usr/local/bin/node /home/REDACTED/work/ClassworksKV/ClassworksKV/node_modules/prisma/build/child {"product":"prisma","version":"6.19.0","cli_install_type":"local","information":"","local_timestamp":"2025-11-14T14:15:44Z","project_hash":"aa57ea34","cli_path":"/home/REDACTED/work/ClassworksKV/ClassworksKV/node_modules/.bin/prisma","cli_path_hash":"62597469","endpoint":"REDACTED","disable":false,"arch":"x64","os":"linux","node_version":"v20.19.5","ci":true,"ci_name":"GitHub Actions","command":"generate --postinstall \"UNABLE_TO_FIND_POSTINSTALL_TRIGGER__ENVAR_MISSING\"","schema_providers":["mysql"],"schema_preview_features":[],"schema_generators_providers":["prisma-client-js"],"cache_file":"/home/REDACTED/.cache/checkpoint-nodejs/prisma-62597469","cache_duration":43200000,"remind_duration":172800000,"force":false,"timeout":5000,"unref":true,"child_path":"/home/REDACTED/work/ClassworksKV/ClassworksKV/node_modules/prisma/build/child","client_event_id":"","previous_client_event_id":"","check_if_update_available":true}(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.