Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auth: using deviceId instead of deviceName to identify a device #127

Conversation

michaelkamphausen
Copy link
Contributor

I am in favour of the device name not having to be unique. In my application, I generate the device name from device information from UAParser. This can often lead to name collisions (same device type, same operating system).

I have noticed that when I remove a device, all devices with the same name are removed. I therefore suggest to always use the deviceId and not the deviceName to identify a device.

@HerbCaudill
Copy link
Member

Hi @michaelkamphausen - good catch, thanks!

I've written a test confirming the fix - can you set this PR to allow edits by maintainers?

Thanks!

@HerbCaudill HerbCaudill merged commit 96fdca9 into local-first-web:main Sep 24, 2024
1 check passed
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