I am trying to integrate webauthn(public key) based authentication into our website.I am facing a problem when end users are switching devices.
How do we maintain at the backend the credentials registered per device, if we don't how to decide whether to show webauthn based auth or now for the current device?
These are the only solutions i could think of:
- Use localStorage, cookies e.t.c to store a device identifier but all of these can be cleared by end user
- If keys are registered on one device we show them web authn on every device and if keys can't be found we ask them to register on this device