Skip to content

Allow any DID format when token asset matches query DID exactly#69

Merged
elffjs merged 2 commits intomainfrom
claude/debug-user-token-auth-N5WdN
Apr 4, 2026
Merged

Allow any DID format when token asset matches query DID exactly#69
elffjs merged 2 commits intomainfrom
claude/debug-user-token-auth-N5WdN

Conversation

@elffjs
Copy link
Copy Markdown
Member

@elffjs elffjs commented Apr 4, 2026

Previously, DecodeERC721DID was called before the direct-match check,
so did:ethr tokens would fail immediately with "unauthorized" even when
token.Asset and the query did were identical. Move the direct-match
check first so it handles any DID format. Change filterToSearchOptions
to accept a plain string subject so the ERC721DID assumption is
removed end-to-end. The device-resolution path (aftermarket/synthetic
device → vehicle DID) is unchanged.

https://claude.ai/code/session_01R5aqTcL3rKEnPazSjxCCP2

claude and others added 2 commits April 4, 2026 14:12
Previously, DecodeERC721DID was called before the direct-match check,
so did:ethr tokens would fail immediately with "unauthorized" even when
token.Asset and the query did were identical. Move the direct-match
check first so it handles any DID format. Change filterToSearchOptions
to accept a plain string subject so the ERC721DID assumption is
removed end-to-end. The device-resolution path (aftermarket/synthetic
device → vehicle DID) is unchanged.

https://claude.ai/code/session_01R5aqTcL3rKEnPazSjxCCP2
@elffjs elffjs merged commit ce681c2 into main Apr 4, 2026
4 checks passed
@elffjs elffjs deleted the claude/debug-user-token-auth-N5WdN branch April 4, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants