atinux / nuxt-auth-utils

Add Authentication to Nuxt applications with secured & sealed cookies sessions.
MIT License
974 stars 91 forks source link

Passkey integration #119

Closed kissu closed 1 month ago

kissu commented 4 months ago

Hey! Not sure how hard it is to implement some Passkeys or even if it's planned but creating the issue for it. 🙂

Gerbuuun commented 4 months ago

I'm almost done with my implementation but it does have a dependency on pilcrow's oslo package. I could create a PR to this repo within a few days.

I think oslo has very good validation functions but this module should also have some utils that create the keys / challenges etc.

I think the minimum would be:

@Atinux what do you think about the dependency on oslo? Maybe it's better to copy the necessary functions (with reference) instead of depending on the whole package

edit: going on vacation until the 12th. Won't work on this until then

EnjoyKojima commented 3 months ago

Hello!! By olso, do you mean this package? I look forward to your PR being merged!

Gerbuuun commented 3 months ago

Yes, the webauthn part has the necessary cryptographic key validation functions. Also fully typed and runtime agnostic which is important

atinux commented 3 months ago

If we can avoid importing oslo but having the utilities into this package it would be great so we can be sure that it works on the edge runtime too.

Happy to see your PR @Gerbuuun ❤