Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to implement Passkeys

I'm trying to learn more about Apple Passkeys. I use firebase as a backend and it seems like actually integrating it in my site is a hassle without having a custom backend… Are there any solutions for Passkeys+Firebase implementation? Can't really find anything online.

like image 499
idanasd149 Avatar asked Mar 09 '26 21:03

idanasd149


2 Answers

I'll echo what Tim has stated, when searching for materials you'll have better luck searching for WebAuthn rather than Passkeys.

The architecture diagram on this page may help you conceptualize what you might need. While the nomenclature is geared to AWS, rather than Google/Firebase, the main idea stays the same (especially because it's centered around a serverless architecture)

This github issue indicates that Firebase auth doesn't support WebAuthn MFA out of the box. So if you want to support Passkeys entirely out of Firebase you'll need to either create a custom auth flow, or explore integrating with another Identity Provider.

If you're not looking to developing something custom, I'd recommend finding an identity prover that supports WebAuthn out of the box. Otherwise, I've got some additional developer guidance here.

Beyond an identity provider, if you are looking for a custom build you need to ensure:

  1. That you build flows on your client application to support WebAuthn
  2. You have databases to store WebAuthn credentials
  3. Database for authentication requests, and registration requests (for challenge validation).
like image 198
Cody Salas Avatar answered Mar 12 '26 17:03

Cody Salas


There are services to help you implement passkeys. They wrap passkeys to make it simpler to integrate even with something like firebase.

I recommend reading about Passkeys at https://passkeys.com they have great documentation there as well.

Second, you should check out apple docs:

https://developer.apple.com/documentation/authenticationservices/public-private_key_authentication/supporting_passkeys

Here’s a tutorial found on Youtube that helped me integrate it into my site : https://youtu.be/5A7ZP-Pex3k

like image 26
Daniel Vazana Avatar answered Mar 12 '26 18:03

Daniel Vazana



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!