Skip to content

feat(user): add trusted device management - #581

Open
seanperez29 wants to merge 2 commits into
v3from
sean/trusted-device-management
Open

feat(user): add trusted device management#581
seanperez29 wants to merge 2 commits into
v3from
sean/trusted-device-management

Conversation

@seanperez29

@seanperez29 seanperez29 commented Jul 29, 2026

Copy link
Copy Markdown

Adds typed trusted-device responses and user client methods for listing active trusted devices and revoking an enrolled device. These methods support the clerk_go Dashboard API proxy while keeping Backend API as the canonical owner of trusted-device management.

Tests cover request paths, HTTP methods, list decoding, and revoked-device responses.

Clerk Go dependency: clerk/clerk_go#20204

@seanperez29
seanperez29 requested a review from a team as a code owner July 29, 2026 20:01
@seanperez29
seanperez29 requested a review from dmoerner July 29, 2026 21:12
Comment thread user/client.go

// Custom type needed in order to store the GET /v1/users/{userID}/trusted_devices
// response array.
type trustedDeviceList []*clerk.TrustedDevice

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the proper way to do this is to make a list type that also embeds APIResource. See how we implement UserList in user.go.

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