My first passkeys implementation 🔑

Something I wanted to implement already for a long time, but always seemed too complicated for the occasional programming session here or there, was support for WebAuthn or Passkeys for GoBlog. I noted it down two years ago and also already started to work on the implementation, but never got around to finish it.

No more of waiting, today I did it! And it wasn’t actually that complicated. 😊

With help of the go-webauthn library and the implementation of Miniflux (which is also written in Go and uses the same library), it was manageable to do in a day.

Now I can log in with two simple clicks:

Click on the login button,

Confirm in Bitwarden, my password manager of choice, which can also save passkeys.

Implementing support for Passkeys probably took way longer than it will ever save me or all other GoBlog users time, but never stop learning, and I definitely learned some new things today!

Interactions & Comments