DEV Community

Discussion on: Passwordless authentication for your website in 5 minutes!

Collapse
 
marcello_h profile image
Marcelloh

When I log out and retry to login, I select my avatar ... then it throws an error.
I like the technique btw :-)

Collapse
 
dagnelies profile image
Arnaud Dagnelies

Oh, that's interesting. Do you mind sharing the device / OS / browser you are using and the error it throws? That would be very helpful. I noticed Firefox is not yet properly supported yet for example.

Collapse
 
marcello_h profile image
Marcelloh

OS : 13.1 (22C65) (Ventura 13.1)
Browser: Brave
Macbook Pro M1

Thread Thread
 
dagnelies profile image
Arnaud Dagnelies

The biggest issue is that I have no Mac device right now at hand, so I cannot even investigte properly. I just verified that it works with Brave on Windows, so I wonder if the issue might be with the Brave / Mac OS combo or some other more generic Mac OS issue. You haven't told me the exact error either. The only thing I could do is open a ticket for now and investigate once I get my hands on a Mac.

Thread Thread
 
marcello_h profile image
Marcelloh • Edited
ui.passwordless.id says

Error: failed operation: POST/auth/login - 500
 Error: Unexpected authenticator counter: 0 (should be >0)
Enter fullscreen mode Exit fullscreen mode

Perhaps you should log errors when they are shows like this, so you never have to ask ;-)

Thread Thread
 
dagnelies profile image
Arnaud Dagnelies • Edited

That helps a lot. Apparently the combo MacOS/Brave does not behave strictly as the specification dictates. That's good to know. I'll add an exception for them until they fix their stuff I guess.

Regarding the logs, I agree. It's on the TODO list. Since it is not a single server but code distributed at many nodes running on-demand, it is slightly more tricky than just dumping it to a file. It's on the way though.

Thanks a lot for the report