-
Notifications
You must be signed in to change notification settings - Fork 3
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
How to set device name #16
Comments
Hi @nijel 👋 While not (yet) explicitly documented anywhere, I consider a UI to manage devices (and by extension, rename devices) out-of-scope for this package. It is up to the implementer to implement an interface to manage and rename credentials. As a practical example, if you want to redirect your user to a form to name their Passkey right after they've registered it, you can listen for the Hope this answers your question. Going to close this now as not planned, but feel free to continue asking questions here. |
Thanks, this indeed works. It makes things a bit more complicated for us because it creates the device without a name and then changes its name. As we log this operation in the audit log, the device creation is without a name. So far, I've workarounded this by delaying maturing the audit log entry, but having a way to pass this in the single request would be nicer. |
Users might want to register more webauthn devices to authenticate. At this point, it is useful to name them so that it is possible to manage them reasonably.
What would be a recommended approach to storing user defined name in the WebAuthnCredential model? The field is already there (inherited from the Device model), so it just needs a way to pass from the user to the database.
The text was updated successfully, but these errors were encountered: