teamhanko / passkeys

FIDO2-certified passkey server and SDKs for adding passkey support to any auth system
https://hanko.io/passkey-api
GNU Affero General Public License v3.0
115 stars 8 forks source link

Check whether `CredentialsProvider` has a `default` field #54

Closed michaelhays closed 3 months ago

michaelhays commented 6 months ago

This is breaking for our usage, because CredentialsProvider.default is undefined.

I've encountered this default issue myself with a few libraries, where the presence of default depends on what I'm running the code with (e.g. tsx vs bun), and this 'default' in FooBar check has worked well for me!

merlindru commented 3 months ago

Hi, apologies we haven't responded to this sooner. This was a mistake on my end.

This should be fixed by #70, which also introduces support for Auth.js v5. Does that fix your issue? Or are you still encountering this (esp. with Auth.js v4)?

michaelhays commented 3 months ago

Thanks @merlindru, I'll take a look!