Giter Club home page Giter Club logo

Comments (3)

bjoern-m avatar bjoern-m commented on May 17, 2024 1

I would also tend to "This passkey cannot be used anymore", because from the user's perspective the passkey is present (the browser suggests the user to use it), but the website is not accepting the passkey anymore. In the upcoming <hanko-profile> element, we should hint the user, before a passkey gets removed accordingly. I don't know about the use case that a admin can delete a user's passkey, but when the user is the only one that can delete passkeys, the suggested error message should be fine. "Invalid passkey" and "Passkey not found" are valid options too, but maybe we should be a little bit more precise, when we know, under normal circumstances, the passkey was there in the past.

from hanko.

Nerglej avatar Nerglej commented on May 17, 2024

I agree on this.

I have some thoughts on this though.
A new user, that have just been introduced to the technology, could get very skeptical about it, if they don't understand that it's a problem out of their hands. If they think that it is a problem on their device, it would make them try to avoid the technology going forwards. If it's stated that it's a problem, like a server error, database error etc., they know that it's not the technology, but a problem on the app or service.

A couple of suggestions:

  1. "This passkey cannot be used anymore", as you said. However, it could make them think that the passkey is still stored somewhere or that it has been blocked. Could also show that there's something wrong with the passkey itself. But it's still describing the problem.

  2. "Invalid passkey". Short, but describes the problem. It's also in line with the WebAuthn error message, but not too technical for the average user. But again, it could lead to a user thinking the passkey itself is not working, or that the user did something wrong.

  3. "Passkey not found". More technical, but still describes the idea of the error. Shows the user that there's nothing wrong with the passkey, but that it just hasn't been found.

These three doesn't really satisfy my first thought, but I can't really come up with anything else, and I not really in on any of them, so more suggestions would be amazing๐Ÿ˜„
Have a nice day

from hanko.

FlxMgdnz avatar FlxMgdnz commented on May 17, 2024

Thanks for your thoughts. Some additional context:

This error message is shown when the server does not accept the passkey. This may be due to:

  • The user deleted the (server-side) passkey in their profile settings (not yet supported, but we're working on it)
  • The admin deleted the (server-side) passkey for the user
  • The user does not exist anymore

In all cases, the passkey on the user's devices is still present and will pop up when the user tries to sign in. I wanted to let the message reflect that there is no technical error or something wrong, but it is up to the user to delete the passkey from their device because it will never work again.

from hanko.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.